NetBeans + Boost + Cygwin_4.x

  • From: "msnatiago09" < >
  • To:
  • Subject: NetBeans + Boost + Cygwin_4.x
  • Date: Thu, 14 Mar 2013 16:56:23 -0400

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:


Code:
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:

#include <iostream>
#include <boost\thread.hpp>


Code:
void t1()
{
    std::cout << "t1";
}

int main() {
    boost::thread t(t1);
    t.join();

    std::cout << "Test";

    return 0;
}


Any idea what I am missing?






NetBeans + Boost + Cygwin_4.x

msnatiago09 03/14/2013

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 187 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close