Strange undefined refernce error
Ross A Luhmann
luhm0016@itlabs.umn.edu
Tue Feb 15 15:57:00 GMT 2000
Hello,
I received a very bizzare error during linking, however Im not sure if
it is a problem with the linker (although I think it might be) or the
compiler. I also do not know if this is a bug with the compiler, linker,
or something I am doing incorrectly. If I reorder the way everything
is linked I do not get the error but I get other undefined references
which are just because things are being linked in the wrong order.
Here is what I get:
kernel/vars/liblobkvar.a(var_tables.o)(.data+0xab8): undefined reference
to `new( ()[)'
Which is very strange because even if ther ehad been a function called
new( ()[) the compiler should have caught that. I can not release the
source to the program unfortunately however if there is a small fragment
of code I might be able to give that up. I know I am using an older
version of the compiler but since Im still mostly on libc5 I dont want to
upgrade everything.
This is what Im using:
linux slackware 4.0
libc-5.4.44
ld-2.9.1
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
automake 1.4
autoconv 2.13
libtool 1.2
I have all of my source files split up into multiple directories and every
directory is compiled into a static library. I then have all of the
libraries linked together to form the executable. Thank you.
Ross Luhmann
More information about the Gcc-bugs
mailing list