|
Boost Users : |
From: meg_r123 (meg_r123_at_[hidden])
Date: 2003-07-09 05:33:58
--- In Boost-Users_at_[hidden], Sebastien Marc <sebmarc_at_y...>
wrote:
> Did you compile using -mt and -D_REENTRANT ?.
I tried, but I get the same runtime error: "Abort", when the program
try to create a boost::thread object...
> What do you think it is a link issue since you do not
> have any unresolved symbols ?.
Yes, you are right, I don't get any error, but I thougth the binary it
is corrupted.
here is the code...
thanks,
meg
#include <boost/thread/thread.hpp>
#include <iostream>
struct hello_thread
{
void operator() ()
{
std::cout << "hello thread..." << std::endl;
}
};
int main(int argc, char* argv[])
{
hello_thread hello;
boost::thread thrd(hello);
thrd.join();
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net