#include "stdafx.h"
#include <boost/thread.hpp>
void task1() {
// do stuff
}
void task2() {
// do stuff
}
int main (int argc, char ** argv) {
usingnamespace boost;
thread thread_1 = thread(task1);
thread thread_2 = thread(task2);
// do other stuff
thread_2.join();
thread_1.join();
return 0;
}
, I get this error:
1>LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc110-mt-gd-1_53.lib'
I know that I have to link the libraries to VS 2012, but I don't know how. I just upgraded to 2012 and the Configuration Properties -> Linker -> General -> Additional Library Directories option isn't there as it was in VS 2010.
If you're getting that error, it means it already knows to link to it, but can't find it. Have you made sure that that file is in your project directory?
Thanks for the input LB, but I solved the problem.
If this happens to anyone else, the path I described is there (it's just not in the place I was used to). I right clicked inside the solutions frame and went to properties then carried out the path.