I'm having my first fling with the Boost libraries, and I've picked a pretty girl named Regex.
I've installed the libraries (which build automatically?) on my machine, but I'm getting the above error (cannot find -lboost_regex). I'm using Code::Blocks with MinGW, and a C++0X compiler flag.
I have
-lboost_regex flag to the linkerbut no luck. Can someone help me get this working?
Update
Got things running now. I've added some further notes in an answer below, for newcomers to this problem.
(Also, changed the title of the question since it turned out to be a broader issue than when I started out.)
Here's some links and tips that can help a newcomer, from my first build experience. I built the libraries directly from the zip file. I built on MinGW and I used CodeBlocks for the IDE.
$boostdir)
b2.exe and bjam.exe
bootstrap.bat like the docs say.$boostdir/tools/build/v2/enginebuild.bat mingw (will build b2.exe and bjam.exe)
b2 and bjam custom-built according to your system spec. Navigate back up to $boostdir and get ready to start building the libraries.
bin.v2 directory in the current directory.bin.v2.b2 toolset=gcc --build-type=complete
Now you're all built. Time to set up CodeBlocks.
$boostdir addressstage\lib\ directory of $boostdir
C:\Program Files\Boost_1_52\stage\lib\libboost_regex-mgw44-1_52.dllblah\blah\blah\stage\lib\)-lboost_regex-mgw44-1_52Further docs that may either help or confuse:
The Code::Blocks website has a version of this that I didn't find until I neared the end of my search. It was fairly helpful but had a few weird things. This post also is helpful.
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With