|
Boost-Build : |
Subject: Re: [Boost-build] Link Library
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-07-23 14:18:22
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
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk