Page 1 of 1

CodeLite and boost librarary

Posted: Sun Jan 18, 2015 5:20 pm
by tony_soprano
Hi there,
I'm having some troubles to get my CodeLite IDE working with Boost library.

So basically, I've got CodeLite v.6.1.1 and Boost library downloaded from sourceforge. I would love to make it actually working, but I failed to do so using the following concept:

I did create new workspace, than I did go -> Settings -> Build Settings -> Compilers (here I have two compilers, one of which is CodeLite 4.8.1 and the other one is MinGW Code::Blocks, I did select CodeLite 4.8.1. -> Advanced -> Global Paths -> and I did provide two blank lines of Include Path and Libraries Path with the directory of unpacked boost library (Windows 7): C:\boostlib\boost_1_57_0.

In this catalog (i.e.: C:\boostlib\boost_1_57_0), I have got all neccesary files, all of them are unzipped and yet I can't get it working.

Besides, I can't click on apply when I'm done with setting path to files containing boost library, all I can do is click ok but once I'm done with this I can't work with libraries from boost.


The following code isn't working:

Code: Select all

#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
{

using namespace boost::lambda;
typedef std::istream_iterator in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << ” ” );
return 0;

}
The message I got is: boost/lambda/lambda.hpp: No such file or directory.

Can you please give me a hand with this ? Any kind of tutorial with step by step methods ? :)

Re: CodeLite and boost librarary

Posted: Mon Feb 02, 2015 3:29 pm
by nezos
Is the path correct? For example my path is "..\boost_1_57_0\boost\lambda" and not "..\boost\boost_1_57_0\lambda".

Also try to set in the #include the full path and see if it works.

Re: CodeLite and boost librarary

Posted: Mon Feb 02, 2015 6:36 pm
by nezos
Funny thing is after i checked my settings to post now it can't find my include files of boost also...

Solution was to move the Global build settings (the paths for compiler and linker) to the project build settings.