Boost logo

Boost-Build :

Subject: [Boost-build] [Thread] visual studio hello word multithreading problem
From: angolero_at_[hidden]
Date: 2008-11-11 02:59:56

Dear boost community.

I want to use boost thread library in Windows with visual studio 8.

So I download the boost_1_36_0_setup.exe, and select all the
multithreading options for visual c++ 8 (visual studio 2005), this
download and install a boost directory with different header files and lib
and dll files.
Then create a project with this code, a hello word multithreading code:

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

void hello(){
    std::cout << "Hello world, I'm a thread!" << std::endl;

int main(int argc, char* argv[]){
    boost::thread thrd(&hello);
    return 0;

And build the project, but in the linking part of the building process
some error pop out.
This is the error:

>LINK : fatal error LNK1104: cannot open file

Of course I check the linker include path, and set the specific file path
there, but still the problem persist.

Any clues?
I have to compile Boost from source to avoid this?
Or someone had the same problem and knows an ease way to solve it?

Any help will be appreciated.

Tanks to all.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at