$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.