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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-20
Oh, and BTW ignore an avoid the Dev-C++ help file, it is worse that useless - it is wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 by
digitalTime.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
Oh, and BTW ignore an avoid the Dev-C++ help file, it is worse that useless - it is wrong.
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