Boost logo

Boost :

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:

> Hi,
> 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

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
> c++ -g -O2 -lboost_date_time -lssl -o testActivity Activity.o testActivity.o
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
> warning:, needed by /usr/lib/, may
> conflict with
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/bin/ld:
> `.gnu.linkonce.t._ZN5boost10posix_time16to_simple_stringENS0_5ptimeE'
> referenced in section `.rodata' of testActivity.o: defined in
> discarded section
> `.gnu.linkonce.t._ZN5boost10posix_time16to_simple_stringENS0_5ptimeE'
> of testActivity.o
> Thanks,
> Curtis

"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, gregod at, cpdaniel at, john at