Boost logo

Boost Users :

Subject: Re: [Boost-users] Linking issue with Boost 1.44 and GCC 4.6
From: Joseph Sulewski (joemacher_at_[hidden])
Date: 2012-10-21 13:55:48


Steven,

Thank you for the reply. It is definitely something order related. I took
your advice and moved the boost_program_options to the end but now I get a
lot of different errors. Is there any documentation that guides the order
in which the boost libraries should be linked?

Thanks,

On Sun, Oct 21, 2012 at 10:05 AM, Steven Watanabe <watanabesj_at_[hidden]>wrote:

> 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 mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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