Linker Error? (VS 2012)

Hello all,

I'm trying to use Boost with Visual Studios 2012. The binaries have been built, but when I try to run a sample program (shown below):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "stdafx.h"

#include <boost/thread.hpp>

void task1() { 
    // do stuff
}

void task2() { 
    // do stuff
}

int main (int argc, char ** argv) {
    using namespace 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.

Can someone help me with this?

Thanks,
xanimeangiex
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.

Topic archived. No new replies allowed.