This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help, zillions of undefined references


Hi Ian,

I think the missing symbols you mentioned are mostly in libgcc.

This suggests the possibility that you are building with one version
of the compiler and linking with another.  You need to be consistent
in this regard.  Are you building all of your code with gcc 2.96?
Your code and also all statically linked libraries should be built
with the same compiler.

Interesting. I looked more closely at the Makefile and found that CC was set to g++296 and CXX was set to g++. I have no idea what the purpose of CXX is in the Makefile but just for the hell of it I tried changing it to g++296 so it would match the compiler specified in CC. And this fixed the problem! Thanks very much for the helpful feedback. Sorry to be such a whiner...


Eric



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]