Thread: Starting with Dev C ; a problem

  1. #16
    Registered User
    Join Date
    Nov 2007
    Posts
    6
    Bring
    Up
    My
    Post

  2. #17
    The larch
    Join Date
    May 2006
    Posts
    3,573
    This is called bumping and considered very rude.

    You don't have a C++ problem but a compiler/IDE setup problem. DevC++ has its own support forum (but be sure to read the FAQ's first).
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  3. #18
    Registered User
    Join Date
    Nov 2007
    Posts
    6
    Thank you anon

  4. #19
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    So, Dev-C++'s g++ works manually.

    In that case, it seems most likely to me that the Makefiles in the examples are not working properly. Try re-creating the project -- create a new project and add in the Hello.cpp source file that is part of the example.

    I would hazard a guess that your path is not the problem, because g++ is being executed
    Code:
    g++.exe -c Hello.cpp -o Hello.o -I"D:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"\
     -I"D:/Dev-Cpp/include/c++/3.4.2/backward" -I"D:/Dev-Cpp/include/c++/3.4.2/mingw32"\
     -I"D:/Dev-Cpp/include/c++/3.4.2" -I"D:/Dev-Cpp/include"
    
    g++.exe: Hello.cpp: No such file or directory
    g++.exe: no input files
    and because it works manually.

    Something that will almost certainly work, but will require a bit of effort, is this. Edit the makefile, that is, D:\Dev-Cpp\Examples\Hello\Makefile.win. Where ever it says "Hello.cpp" or "Hello.o" or "Hello.exe" in this makefile, put the full path -- i.e., change "Hello.cpp" to "D:\Dev-Cpp\Examples\Hello\Hello.cpp", and so on.

    The animated attached image is really neat.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-20-2009, 05:22 PM
  2. Interpreter.c
    By moussa in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 05:59 PM
  3. problem with using for loops with Dev C++
    By indigo0086 in forum C++ Programming
    Replies: 10
    Last Post: 08-10-2005, 11:04 PM
  4. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  5. Words and lines count problem
    By emo in forum C Programming
    Replies: 1
    Last Post: 07-12-2005, 03:36 PM