Mail Archives: djgpp/2004/05/17/15:45:49
> The right way to do this is:
>
> %.o : %.cpp $(HDRS)
>
Thanks!! looks a lot less complex :-)
I'm still quite new to working with makefiles, so all
hints like this one are greatly appreciated!!
> Plus, try "make -nr" to show you what make would do without its
> internal rules. It might help.
OK, it helped! :-)
But I still think the problem is quite strange.
When I ran make -nr, it said
"No rule to make FileByteSource.o, needed by libio.a"
So I Checked out everything in the build rule.
And it seems that spaces are not allowed before a multi-line-indicator (or
whatever the correct
name for a "\" might be in this case :-) )
My include variable was:
INCLUDE = -I. \ # this is -I.<space>\
-ID:/Include
I compared it with a file that DID work, and noticed that the working
file didn't have a space between the "." and the "\"
So I removed the space in the non-working file, and PING!!!!! it worked!!
I'm glad it's solved, but I still think it's quite a strange error.
I wonder if any other people have had the same.
Maybe you should add this to your FAQ,
or is this a problem that also happens with the normal GNU Make?
Anyway, thanks a lot!!
Greets,
Lorenzo
- Raw text -