This is the mail archive of the
mailing list for the GCC project.
Undefined reference, but symbol exists
- From: Alex Sandro Queiroz e Silva <ventonegro at ventonegro dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 24 Jul 2004 17:47:44 -0300
- Subject: Undefined reference, but symbol exists
I've searched about this in the archives and with google, but couldn't
find any help. I'm just getting insane here. I am getting the following
lua/liborbis-lua.a(luawatervolume.o)(.text+0x1c2): In function
/usr/include/c++/3.4/ext/mt_allocator.h:557: undefined reference to
unsigned int, double)'
collect2: ld returned 1 exit status
I am using GCC 3.4, and all the C++ libraries I use in this project were
compiled with the same version as well. The error also existed with GCC
3.3 (moving to 3.4 was an attempt to solve this). The error persists if
I change the code to call the default constructor, but not with any
other method of the same class. The class in question was compiled into
an archive to be linked to make the final product.
Can anybody say what's going on?