Boost logo

Boost :

Subject: Re: [boost] Undefined refs when compiling trivial example
From: Peter Dimov (lists_at_[hidden])
Date: 2017-03-28 12:41:27


Florian Lindner wrote:
> but compiling fails:
>
> lindnefn_at_helium ~ %
> g++ -std=c++11 -DBOOST_ALL_DYN_LINK -pthread -lboost_log_setup -lboost_log
> -lboost_thread -lboost_filesystem boostlog_trivial.cpp

Try moving boostlog_trivial.cpp before the -l options. Order is significant;
only -l after are searched.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk