Boost logo

Boost-Build :

Subject: Re: [Boost-build] Link Library
From: EricTheRed01 (ericbel_2_at_[hidden])
Date: 2009-07-23 15:13:41

EricTheRed01 wrote:

> I'm using Code Blocks and I set my Project->Build Options.. -> Linker
> Settings -> link libaries -> Add:
> and I added "boost_*-mgw34-mt-1_37". However, when I compile my simple
> project (below) I get, a windows popup box with this message.
> "This application has failed to start because
> boost_filesystem-mgw34-mt-1_37.dll was not found. Re-installing the
> application may fix this problem."

This means you don't have that library in PATH environment variable.

> My code is
> #include<iostream>
> #include<boost/filesystem/operations.hpp>
> namespace bfs=boost::filesystem;
> int main()
> {
> bfs::path p("second.cpp");
> if(bfs::exists(p))
> std::cout<<p.leaf()<<std::endl;
> }
> Any ideas? Did I set my link library properly? Can Code blocks actually
> associate the * as a wildcard for all libraries?

I don't know -- I expect Code Blocks support team might be more appropriate
to asnwer this question.

> And why is this DLL not in the lib folder of installation path??

What is installation path and what is lib folder thereof? I am pretty
sure that if you have built Boost using getting started guide, all
the right libraries are in the right places. You need to either set
PATH, or copy dlls into a location already in PATH.

- Volodya

Thanks I used this tip of setting my PATH and it worked! The tutorial didn't
say anything about setting the lib path...

View this message in context:
Sent from the Boost - Build mailing list archive at

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at