From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Mehrotra To: gcc-help@gcc.gnu.org Subject: ld says undefined reference to function which exists Date: Mon, 24 Jan 2000 15:46:00 -0000 Message-id: <388CE662.EC139427@uivlsi.csl.uiuc.edu> X-SW-Source: 2000-01/msg00160.html 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amit Mehrotra To: gcc-help@gcc.gnu.org Subject: ld says undefined reference to function which exists Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <388CE662.EC139427@uivlsi.csl.uiuc.edu> X-SW-Source: 2000-q1/msg00160.html Message-ID: <20000401000000.eVuk9Q_2O_nNW008YCOZo2Gplvr6Dy8msYt0hN3NXag@z> 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