Squeeze/Lenny compilation : Library Link error
Posted
by
PEZ
on Server Fault
See other posts from Server Fault
or by PEZ
Published on 2013-11-08T09:57:28Z
Indexed on
2013/11/08
9:59 UTC
Read the original article
Hit count: 343
I've got a problem here : I have a C++ Library ("DataTsBroad") and a C++ Test app ("DataTsBroadTest"), to test it.
Actually, the Lib and the Test app are both compiled an a Debian Lenny.
Now, i want to continue to compile my Test app on a Debian Lenny (customer constraint), but i would compile my lib on a Squeeze or a Wheezy to work on the last Debian releases.
So, i successfully compiled my Lib on a Squeeze, But, after, when i try to compile my Test app with this Lib on the Lenny, it fails ! There is a Link Error :
Linking CXX executable DataTsBroadTest /home/nis/pezierg/test/ProductMak/Export/DataTsBroad/L64/Release/libDataTsBroad64.so: undefined reference to `std::ctype::_M_widen_init() const@GLIBCXX_3.4.11'
collect2: ld returned 1 exit status
make[2]: *** [DataTsBroadTest] Error 1
make[1]: *** [CMakeFiles/DataTsBroadTest.dir/all] Error 2
make: * [all] Error 2
The problem is certainly due to ostream C++ Lib, I tried to comment all it's uses in my Lib and it works.
But how can i really fix the problem ?
© Server Fault or respective owner