This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Undefined symbols with gcc
- From: Glenn Meuth <glenn at answerontech dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Feb 2002 13:27:52 -0700
- Subject: Undefined symbols with gcc
Greetings all,
I am trying to find out why I have 2 symbols undefined when using
gcc. I am running Redhat 7.0, with a gcc-3.0.3 compiler built with
--enable-threads. A typical command line is:
gcc -g -DNN_DPK -DHAVE_CONFIG_H -DLINUX -DVAXULT -DULTRIX -c nn_math2.c
-o lib/nn_math2.o
The two symbols that are undefined (as reported by the linker):
(...)/nn_math2.c:2754: undefined reference to `LC55'
(...)/nn_math2.c:2754: undefined reference to `LC61'
I have noticed from nm that the symbols are indeed not defined in
nn_math2.o. However, when I run without debug information turned on, it
works fine. Any idea's? Currently, I have tried building gcc with
binutils 2.11.2 to see if there was an issue with the assembler or
something, there appears not to be.
AdvaTHANKSnce!
Glenn
glenn@answerontech.com