problem with makefile
hi i made 3 files which are
project.c lib.c lib.h in project.c i write #include <studio.h> main() { printf("hello",dosomething(5)); } in lib.c i write #include "lib.h" int dosomething( int x ) { return (x*3); } in lib.h i write int dosomething( int ) ; and in the makefile i write project.exe:project.o lib.o cc -o project project.o lib.o lib.o : lib.c cc -c lib.o lib.c project.o : project.c lib.h cc -c project.o project.c lib.h and thenn i go to the shell and i taped make it said erreur:missing seperate |
It is a complaint about the format of your makefile. Please repost your makefile in CODE tags to preserve the formatting.
--- rod. |
Quote:
|
where so can any body help me i guess it's a simple program !!!!
|
As already asked for, please post your Makefile between code tags.
Something like: Code:
project: project.o lib.o |
thank you very much now i must tape make right
i mean i save what u tagged in a file called makefile then i tape make in the shell |
Glad to know.
The reason it failed is likely missing spaces (or tab) before the cc commands in your original Makefile. |
my god it's the space so
really windows is more good than this unix all of that because of space merci pour ton aide mon ami(je parle aussi francais) |
Quote:
Windows is certainly not "more good" than Unix because of this particular spacing issue. At the opposite, breaking conventions like this one is commonly described as the obnoxious "Embrace and Extend" behaviour. http://en.wikipedia.org/wiki/Embrace...and_extinguish |
still not working i stay all day trying fix it but the same problem
Quote:
|
What system are you running ?
|
Quote:
|
i use fedora fc4
what's the matter with that makefile did you test that makefile |
Again, can you post the makefile you are using, and between code tags.
And make sure the indented lines start with a tab, as POSIX standard requires. |
i use this one i write it and it's the same problem
Quote:
|
All times are GMT -5. The time now is 10:59 PM. |