Boost logo

Boost Users :

Subject: [Boost-users] boost link error
From: Pervez, Salman (Salman.Pervez_at_[hidden])
Date: 2012-03-20 16:09:39

Hi everyone, I need some help debugging a link error I am getting. I am trying to compile an application that uses boost, here is the error.

g++ -g -O2 -o .libs/sesame sesame-SysAgent.o sesame-Sysimage.o sesame-Package.o -L/home/spervez1/db-4.6.21/build_unix/lib -L/home/spervez1/boost_1_49_0/lib\
/home/spervez1/qpidc-0.14/src/.libs/ /home/spervez1/qpidc-0.14/src/.libs/ /home/spervez1/qpidc-0.14/src/.libs/ /hom\
e/spervez1/qpidc-0.14/src/.libs/ -lboost_program_options -lboost_filesystem -ldl /home/spervez1/qpidc-0.14/src/.libs/ -luuid \
/home/spervez1/dbus-1.4.16/dbus/.libs/ -lpthread -lrt -Wl,--rpath -Wl,/home/spervez1/qpid-tools/lib -Wl,--rpath -Wl,/home/spervez1/dbus-1.4.16/\
/usr/bin/ld: warning:, needed by /home/spervez1/boost_1_49_0/lib/, not found (try using -rpath or -rpath-link)
/home/spervez1/qpidc-0.14/src/.libs/ undefined reference to `boost::system::system_category()'
/home/spervez1/qpidc-0.14/src/.libs/ undefined reference to `boost::system::generic_category()'
collect2: ld returned 1 exit status

I have boost installed in /home/spervez1/boost_1_49_0/

Here are the two commands that led to this error

CPPFLAGS="-I/home/spervez1/db-4.6.21/build_unix/include -I/home/spervez1/boost_1_49_0/include" LDFLAGS="-L/home/spervez1/db-4.6.21/build_unix/lib -L/home/spervez1/boost_1_49_0/lib" ./configure --with-qpid-checkout=/home/spervez1/qpidc-0.14 --with-db4-devel=/home/spervez1/db-4.6.21/build_unix --with-boost=/home/spervez1/boost_1_49_0/


I've researched some online and others have been able to solve this problem by adding the -lboost_filesystem flag which already exists in the makefile command so I'm a bit confused what the error could be. I'll appreciate any input on this. Thanks.




The contents of this message and any attachments may be confidential and proprietary and also may be covered by the Electronic Communications Privacy Act. This message is not intended to be used by, and should not be relied upon in any way, by any third party. If you are not an intended recipient, please inform the sender of the transmission error and delete this message immediately without reading, disseminating, distributing or copying the contents. Citadel makes no assurances that this e-mail and any attachments are free of viruses and other harmful code.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at