________________________________________ From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Terrimane Pritchett Sent: Monday, April 27, 2009 5:06 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [BOOST THREAD] Threads Spawning Unexpectedly
What you say about the Windows runtime may be a possibility but I am given pause by one thing...I don't change any compiler options for the single- threaded or multi-threaded implementation. Both implementations are linking against the same runtime. I will have to research what goes on with boost::threads a bit further but for now at least there is a starting point for investigation.
That may be part of your problem. Assuming that you are using Visual Studio, go to the project properties dialog. In the tree at the left, select Configuration Properties - C/C++ - Code Generation. About halfway down the list on the right, you will see a "Runtime Library" property. Set it to the correct value for your program. The choice should be obvious. John