Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boost library path include

Tags:

mingw

boost

I installed boost v.1.51.0 and the directory "boost_1_51_0" is sitting under "/home/user1/boost/". To install, i merely unzipped the tar file in "/home/user1/boost/". I'm using the C++ compiler on MinGW.

Now, i'm trying to include the libraries in the code. so far i tried

#include </home/user1/boost/boost_1_51_0/libs/unordered/test/objects/test.hpp>  
#include </home/user1/boost/boost_1_51_0/test.hpp>
#include </home/user1/boost/test.hpp>
#include <boost/test.hpp>

along with some others. I even tried adding the windows location of "/home/user1/boost/" to the path.

I'm missing something.

like image 951
ashley Avatar asked Dec 11 '25 17:12

ashley


1 Answers

You need to provide the include directory to your compiler using a command-line argument, e.g. -I/home/user1/boost/boost_1_51_0.

You may also want to actually install boost to a system directory; see http://www.boost.org/doc/libs/1_51_0/doc/html/bbv2/installation.html for details.

like image 80
nneonneo Avatar answered Dec 15 '25 14:12

nneonneo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!