NetBeans + Boost + Cygwin_4.x
I'm starting studies with C++ and need to create a project that uses threads.
My big problem is that I can't configure the boost library. I always get the same error message:
|
make[2]: Leaving directory /cygdrive/c/Users/myuser/Documents/NetBeansProjects/CppApplication_1' nbproject/Makefile-Debug.mk:59: recipe for target.build-conf' failed make[1]: * [.build-conf] Error 2 make[1]: Leaving directory /cygdrive/c/Users/myuser/Documents/NetBeansProjects/CppApplication_1' nbproject/Makefile-impl.mk:39: recipe for target.build-impl' failed make: * [.build-impl] Error 2
|
BUILD FAILED (exit value 2, total time: 856ms)
I searched a lot and I can not find anything that solves my problem.
Realized boost settings as follows:
Project -> Properties -> Build -> C++ Compiler -> Include Directories -> D:/libs/boost_1_53_0
Project -> Properties -> Build -> Liker -> Additional Libary Directories -> D:/libs/boost_1_53_0/stage/lib
Project -> Properties -> Build -> Liker -> Libraries -> Add Library -> boost_thread-vc110-mt-1_53.lib
|
These were my settings. Here's my code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
#include <boost\thread.hpp>
void t1()
{
std::cout << "t1";
}
int main() {
boost::thread t(t1);
t.join();
std::cout << "Test";
return 0;
}
|
Any idea what I am missing?
boost, cygwin, vs2010?
Can you please describe your environment.
have you tried #include "boost\thread.hpp"
Topic archived. No new replies allowed.