Boost logo

Boost :

From: raja (raja_at_[hidden])
Date: 2004-03-15 13:35:59


Hi,
I am getting the following error. I see that it is trying to link to the
static library, but I still get this error.
Would appreciate if someone can correct my usage.
Linking to lib file: lib"boost_thread"-vc71-mt-sgd-1_31.lib

c:\Boost\include\boost-1_31\boost\config\auto_link.hpp(269) : fatal error
C1189: #error : "Mixing a dll boost library with a static runtime is a
really bad idea..."

Here is my sample:
#define _MSC_VER 1310

#define BOOST_LIB_NAME "boost_thread"

#define BOOST_LIB_DIAGNOSTIC "on"// Show library file details.

#include <boost/config/auto_link.hpp>

#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);

thrd.join();

return 0;

}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk