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]

ld says undefined reference to function which exists


I have C++ code scattered over a bunch of .cc files which compiles
without errors. When I compile .o files to make a final executable, it
complains that some non-inline, non-member functions are not found.
However, when I nm the corresponding .o files, the functions are
present. I am using gcc 2.95.2 on a i686-gnu-linux system with ld which
is part of binutils-2.9.1.0.23. I am not able to figure out what the
problem is!

Amit


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