« Return to Thread: [Thread] (Newb) shared memory in multithread process

Re: [Thread] (Newb) shared memory in multithread process

by Bugzilla from anthony.ajw@gmail.com :: Rate this Message:

Reply to Author | View in Thread

gabe_rosser <gabriel.rosser@...> writes:

> Now I have an error from main() (also shown in bold
> above):
>
> main.cpp:123: error: variable ‘boost::thread t1’ has initialiser but
> incomplete type
> main.cpp:124: error: variable ‘boost::thread t2’ has initialiser but
> incomplete type
>
> Sorry but I'm  not sure how to fix this.

There's a missing include:

#include <boost/thread/thread.hpp>

Anthony
--
Author of C++ Concurrency in Action | http://www.manning.com/williams
just::thread C++0x thread library   | http://www.stdthread.co.uk
Just Software Solutions Ltd         | http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

 « Return to Thread: [Thread] (Newb) shared memory in multithread process