Menu

newbie needs help with separate compilation

ryanmin34
2007-08-18
2012-09-26
  • ryanmin34

    ryanmin34 - 2007-08-18

    Hello I am trying to compile and run a program in Dev version 4.9.9.2

    I can get single programs to compile and run fine but when adding headers and implementation I get an error...

    Compiler: Default compiler
    Building Makefile: "C:\Dev-Cpp\Makefile.win"
    Executing make...
    make.exe -f "C:\Dev-Cpp\Makefile.win" all
    make.exe: *** No rule to make target "C++', needed bydigitalTime.a'. Stop.

    Execution terminated

    The answer is probably very simple but I am new to this. I have looked in the forum for similar questions,
    but I cant seem to find an answer.

    My project contains dtime.cpp and dtime.h as well as timedemo.cpp containing the main().
    The program performs tasks converting time from 12 to 24 hour notation.
    I would include the code but I think the pebkac along with maybe a small detail somewhere.
    Any help would be greatly appreciated. - Thanks

     
    • Anonymous

      Anonymous - 2007-08-20

      Oh, and BTW ignore an avoid the Dev-C++ help file, it is worse that useless - it is wrong.

       
    • Anonymous

      Anonymous - 2007-08-19

      Tell us more about your program. It looks from the log as if you are trying to build a static library (in which case it should not normally contain a main() function) rather than an executable.

      I am not sure how you managed to end up with a target called "C++".

      It looks like you have really munged your project somehow- I suggest that you start again, note down the steps you take, and if you still have problems, report those steps here (you can use your existing sources - you don't need to re-write those).

      If you don't want to do all that right now, try posting the log after a "Rebuild All", and posting the content of makefile.win.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.