Boost logo

Boost Users :

Subject: Re: [Boost-users] How do you compile Boost C++ code in Ubuntu?
From: John Maddock (boost.regex_at_[hidden])
Date: 2013-02-08 11:20:37


> Thank you so much, Mr. Loskot, for spending your precious time to
> help a C++ dingbat like me.
>
> I followed your instructions to link the libraries, with the
> "-lboost_filesystem -lboost_system" sequence of linking the
> aforementioned Boost C++ libraries.
>
> However, I cannot resolve the linking error. I have included a
> snippet from my Terminal session below.
>
> Go Bears >make all
> g++ -L/usr/lib -lboost_filesystem -lboost_system get_sys_info.cpp

It is a quirk of GCC that the libraries used by a source file must appear
*after* the source file. Nothing to do with Boost really...

John.


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