Boost logo

Boost Users :

Subject: Re: [Boost-users] regex linker issue/
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-01-06 12:48:27


> To compile and link:
> g++ -o regex-test -I../../boost/boost_1_45_0/
> -L../../boost/boost_1_45_0/stage/lib/ -lboost_regex regex-test.cpp

GCC requires that libraries appear *after* the source files that use them,
fix that and it should work,

HTH, 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