From: Jonathan Wakely (cow_at_[hidden])
Date: 2004-12-03 05:40:12
On Thu, Dec 02, 2004 at 11:35:19PM -0800, Curtis Spencer wrote:
> I am able to compile a program of mine with gcc 3.3.4 with absolutely
> no problems, but when I compile it with gcc 3.4.3, I get this issue.
> Is there something I need to do when installing the boost library to
> have it use libstdc++.so.6?
You need to build Boost with GCC 3.4, otherwise your program and Boost
will be trying to use different definitions of the stdlib components.
Since you seem to be using a version of Boost installed in /usr/lib, was
it a binary installation from RPM or something?
If so, you'll need to get a new version of that binary package that was
built with GCC 3.4, or build your own copy of Boost with GCC 3.4, install
it somewhere else and link to that version.
> c++ -I. -I. -I/usr/include/libxml2 -g -O2 -c testActivity.cc
> c++ -g -O2 -lboost_date_time -lssl -o testActivity Activity.o testActivity.o
> warning: libstdc++.so.5, needed by /usr/lib/libboost_date_time.so, may
> conflict with libstdc++.so.6
> referenced in section `.rodata' of testActivity.o: defined in
> discarded section
> of testActivity.o
-- "A well-written program is its own heaven A poorly written program is its own hell" - The Tao of Programming
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk