Hi!


I'm quite far from being an expert of Linux, for that I'd be really thankful if someone could help me.

I'm trying to build a c++ project containing quite a lot of headers and sources using make and a makefile. Make has its advantage to compile only files that have been changed since the last compile and I'd really loved that one since this project normally compiles for ages. But! When I change a file and type 'make' then in most of the times the linking at the end fails writing out 'undefined reference' several times. If I type 'make clean' that deletes all .lib's and .o's and then type 'make' again it finishes without any errors - but tooks my half life to wait for it.
What can cause such a phenomenon? I'm really out of ideas. When I say 'in most of the time' I mean I succeeded to change some print strings without needing to recompile everything but I don't see the rule, I tried to add just one letter to a string and the error came again.

I'm using gcc version 3.4.6 for the code doesn't compile with newer versions (originally not written by me).

If you need some more details just call for it and I try to provide them.


Thanks in advance!

Matyi