|
Boost Users : |
Subject: Re: [Boost-users] Linking issue with Boost 1.44 and GCC 4.6
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-10-21 10:05:38
AMDG
On 10/20/2012 11:16 AM, Joseph Sulewski wrote:
> I'm having a very strange compilation issue with Boost. I've used boost in
> other C++ projects in the past and have had no issues.
>
> I'm writing a program to compile against Hypertable which relies on the
> boost 1.44 version of the library. I'm writing this on Intel Linux and
> compiling with GCC 4.6.3
>
> Here is my linker command. I removed the .o's from my application to make
> it simpler to read:
> g++ -L/opt/hypertable/current/lib
> -L/home/l3/development/libraries/boost_1_44_0/stage/lib -pthread -o
> "AppLogger" MYDOT-O-FILES.o -lboost_system -lboost_iostreams
> -lboost_filesystem -lboost_program_options -lboost_thread -lsigar-x86-linux
> -lz -lHypertable -lHyperspace -lHyperTools -lHyperComm -lHyperCommon
>
Last time I checked, you need to put -lboost_program_options
after the libraries that use it.
> As you can see I'm including a number of boost libraries but I'm getting a
> lot of very strange errors.
> For example,
> opt/hypertable/current/lib/libHypertable.a(Client.cc.o): In function
> `Hypertable::Client::Client(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, unsigned int)':
> Client.cc:(.text+0x26a5): undefined reference to
> `boost::program_options::variables_map::variables_map()'
>
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net