problems with libstdc++
lfs-01 at thewizardstower.org
Thu Apr 29 09:57:46 PDT 2004
* webmaster at animechecklist.net <webmaster at animechecklist.net> [2004-04-29 18:40]:
> Hi All,
> I'm a happy user of a 4.0 LFS/BLFS from more that one year (I don't
> remember exactly when I started), and recently I'm having some troubles
> trying to compile some c++ programs.
> The problem I usually encounter are always related to std:something,
> so I think it's a c++ stdlib problem. This is a part of my recently
> failed making of mjpegtools:
> g++ -mcpu=i686 -march=i686 -g -O2 -o .libs/mplex main.o ../mplex/.libs/libmplex2.so /usr/lib/libstdc++.so -L/usr/local/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src -L/usr/local/src/gcc-build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -L/usr/local/src/gcc-build/gcc -lm -Wl,--rpath -Wl,/usr/local/lib
> main.o: In function `main':
> /usr/local/src/mjpegtools-1.6.2/mplex/main.cpp:619: undefined reference to `std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*, unsigned)'
I'm C++ ignorant but to me it looks like a syntax problem in mjpegtools.
g++ is getting closer to the c++ standard with each new version, and
syntax that was non-compliant but accepted by older versions are
rejected by newer ones.
Solutions: try to compile with an older g++, like 2.95.3 which you
should have around if your base system is lfs 4.0; make sure you have
the latest package version; hunt for patches in the debian or gentoo
More information about the blfs-support