|Installing boost with eclipse [message #1017103]
||Sat, 09 March 2013 10:03
| Bersac Guillaume
Registered: March 2013
I a trying to use eclipse as a IDE for a project with Boost. I tryed the instructions here : theseekersquill.files.wordpress.com/2010/08/eclipseboostincludepath.png
but I can't succed to compile.
First I haven't been able to instal the MinGW Compiler Toolchain (in the Wascana repository URL). It seems like it is no longer supported.
Then I typed this text in my project :
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
in(std::cin), in(), std::cout << (_1 * 3) << " " );
I have this errors :
cannot open output file test_boost.exe: Permission denied
Symbol 'lambda' could not be resolved
Can you explain me why it is not working ?
[Updated on: Sat, 09 March 2013 10:08]
Report message to a moderator
|Re: Installing boost with eclipse [message #1019504 is a reply to message #1017160]
||Fri, 15 March 2013 21:16
| Richard Daehler-Wilking
Registered: February 2013
I am having the same problem in 64-bit Win 7 trying to compile the first simple Boost tutorial exercise, which uses [#include <boost/lambda/lambda.hpp>]. It is unable to accept the main Boost directory as an #include <...> starting point. I have seen some posts explaining that Eclipse must be told where to find the include directories, and I have populated the project's [Properties > C/C++ Build > Settings > Tool Settings > GCC C++ Compiler > Includes] entries for both [Include paths (-I)] and [Include files (-include)] with various combinations like ["C:/Program Files/Boost_1_53_0"] (with quotes), [C:/Program Files/Boost_1_53_0] (without quotes), ["C:\\Program Files\\Boost_1_53_0"] (quotes with double backslashes), [C:\\Program Files\\Boost_1_53_0] (no quotes, with double backslashes). |
I have also populated [C/C++ General > Paths and Symbols > Includes > GNU C++ with [C:/Program Files/Boost_1_53_0], both with and without quotes. In particular, I've tried it with the same formatting used for the MinGW directories that seem to cause it no problems.
With the -v setting for verbose output, it reports that it's ignoring various duplicate MinGW directories, but does NOT show my Boost directories under either [#include "..." search starts here:] or [#include <...> search starts here:].
Powered by FUDForum
. Page generated in 0.01711 seconds