Undefined reference, but symbol exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux