CodeLite and boost librarary

CodeLite installation/troubleshooting forum
tony_soprano
CodeLite Curious
Posts: 1
Joined: Sun Jan 18, 2015 5:10 pm
Genuine User: Yes
IDE Question: C++
Contact:

CodeLite and boost librarary

Post 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 ? :)
nezos
CodeLite Veteran
Posts: 59
Joined: Wed Dec 31, 2014 6:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite and boost librarary

Post 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.
nezos
CodeLite Veteran
Posts: 59
Joined: Wed Dec 31, 2014 6:36 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: CodeLite and boost librarary

Post 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.
Post Reply