This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Undefined reference, but symbol exists


Hallo,

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 linking error:

lua/liborbis-lua.a(luawatervolume.o)(.text+0x1c2): In function Orbis::Script::LuaWaterVolume::create(lua_State*)':
/usr/include/c++/3.4/ext/mt_allocator.h:557: undefined reference to `Orbis::Drawable::WaterVolume::WaterVolume(Orbis::Util::Point const&, 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?

-alex


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]