newbie build question (threads and win32)
Hi,
I'm trying to use Boost's threads on WIN32 using VC++ and having
some difficulty.
I've built the source
cd D:\boost\boost_1_30_0; bjam "-sTOOLS=msvc"
and after the build is done, there are some errors, but they all
appear related to the regression testing. Then I
cd libs\thread\build; bjam "-sTOOLS=msvc"
and everything appears to work fine. However, my simple program
can't compile. I get this error:
d:\boost\boost_1_30_0\boost\thread\thread.hpp(17) : fatal error
C1189: #error : Thread support is unavailable!
My test program simply is:
#include
Dave Viner said:
Hi, I'm trying to use Boost's threads on WIN32 using VC++ and having some difficulty.
I've built the source cd D:\boost\boost_1_30_0; bjam "-sTOOLS=msvc" and after the build is done, there are some errors, but they all appear related to the regression testing. Then I cd libs\thread\build; bjam "-sTOOLS=msvc" and everything appears to work fine. However, my simple program can't compile. I get this error: d:\boost\boost_1_30_0\boost\thread\thread.hpp(17) : fatal error C1189: #error : Thread support is unavailable!
My test program simply is: #include
int main(int argc, char* argv[]) { printf("Hello World!\n"); return 0; } I can't seem to figure out why threads aren't enabled. I realize this is a very simple question, but I'd love to hear what silly thing I've done wrong. Thanks in advance for your help.
Nothing wrong with your code, you're just using the wrong compiler options. Make sure you compile against a MT RTL (/M* family of switches). -- William E. Kempf
that worked!
thanks for your quick replies!
dave
--- "William E. Kempf"
Dave Viner said:
Hi, I'm trying to use Boost's threads on WIN32 using VC++ and having some difficulty.
I've built the source cd D:\boost\boost_1_30_0; bjam "-sTOOLS=msvc" and after the build is done, there are some errors, but they all appear related to the regression testing. Then I cd libs\thread\build; bjam "-sTOOLS=msvc" and everything appears to work fine. However, my simple program can't compile. I get this error: d:\boost\boost_1_30_0\boost\thread\thread.hpp(17) : fatal error C1189: #error : Thread support is unavailable!
My test program simply is: #include
int main(int argc, char* argv[]) { printf("Hello World!\n"); return 0; } I can't seem to figure out why threads aren't enabled. I realize this is a very simple question, but I'd love to hear what silly thing I've done wrong. Thanks in advance for your help.
Nothing wrong with your code, you're just using the wrong compiler options. Make sure you compile against a MT RTL (/M* family of switches).
-- William E. Kempf
------------------------ Yahoo! Groups Sponsor
Info: http://www.boost.org Wiki:
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl
Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
participants (2)
-
Dave Viner
-
William E. Kempf