This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ld says undefined reference to function which exists
- To: gcc-help at gcc dot gnu dot org
- Subject: ld says undefined reference to function which exists
- From: Amit Mehrotra <amehrotr at mail dot icims dot csl dot uiuc dot edu>
- Date: Mon, 24 Jan 2000 17:55:14 -0600
- Organization: Coordinated Science Lab UIUC
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