21 Aug
2009
21 Aug
'09
12:08 a.m.
AMDG 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
#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();
}
You need to link to the thread library. Please read the getting started guide. In Christ, Steven Watanabe