
9 Jul
2003
9 Jul
'03
4:33 a.m.
--- In Boost-Users@yahoogroups.com, Sebastien Marc <sebmarc@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(); }