I have read the getting started section and its confused me even more.Read it again ;-)
2009/8/21 Steven Watanabe <watanabesj@gmail.com>
AMDGYou need to link to the thread library.
Shaolin wrote:
I am try to create a thread with boost but eveytime I execute I get some
freaky error messages. See code below followed by error msg:
#include <boost/thread/thread.hpp>
#include <iostream>
using namespace std;
void hello()
{
cout << "hello" << endl;
}
int main(int argc, char* argv[])
{
boost::thread thrd1(&hello); // ERROR caused by the &hello param
thrd1.join();
}
Please read the getting started guide.
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users