boost 1.61 编译好的包 win32 TDM-GCC5.1.0 static 这个才是32位的

时间:2019-07-05 13:33:12
【文件属性】:

文件名称:boost 1.61 编译好的包 win32 TDM-GCC5.1.0 static 这个才是32位的

文件大小:42.26MB

文件格式:RAR

更新时间:2019-07-05 13:33:12

boost 1.61 tdm-gcc 5.1 static

http://wudimei.com QQ 290359552 boost 1.61 编译器:TDM-GCC 5.1.0 位数:32位CPU 链接方式:静态链接 版本:debug和release两个 环境变量: BOOST_ROOT = D:\opensource\cpp\boost1.61_DLR BOOST_LIB = %BOOST_ROOT%\lib //C_INCLUDE_PATH = %BOOST_ROOT%\include\boost-1_61 #非必须 CPLUS_INCLUDE_PATH +=%BOOST_ROOT%\include\boost-1_61 LIBRARY_PATH += %BOOST_LIB% //PATH += %BOOST_LIB% #非必须 main.cpp #include #include using namespace std; void hello() { for( int i=0; i<5;i++ ){ cout <<"Hello world, wudimei.com!"<< " thread id: "<< boost::this_thread::get_id() << endl; } } int main() { boost::thread thread1(&hello); boost::thread thread2(&hello); boost::thread thread3(&hello); boost::thread thread4(&hello); thread1.join(); thread2.join(); thread3.join(); thread4.join(); return 0; } 编译 g++ main.cpp -o main.exe -lboost_thread-mgw51-mt-1_61 -lboost_system-mgw51-mt-1_61 -m32 rem debug version add "-d" rem g++ main.cpp -o main.exe -lboost_thread-mgw51-mt-d-1_61 -lboost_system-mgw51-mt-d-1_61 -m32 结果: D:\projects\workspace\cdt1\test5>main Hello world, wudimei.com!Hello world, wudimei.com!Hello world, wudimei.com!Hello world, wudimei.com! thread id: thread id: thread id: 56ac339c4fdc Hello world, wudimei.com! thread id: thread id: 4fdc4934 Hello world, wudimei.com! thread id: 4fdc Hello world, wudimei.com! thread id: 56ac Hello world, wudimei.com! thread id: Hello world, wudimei.com!Hello world, wudimei.com!339cHello world, wudimei.com! thread id: thread id: 4934 thread id: 56ac 4fdc Hello world, wudimei.com! Hello world, wudimei.com! thread id: thread id: 339c56acHello world, wudimei.com! thread id: Hello world, wudimei.com! thread id: Hello world, wudimei.com!4fdc thread id: 56ac 4934 Hello world, wudimei.com! thread id: Hello world, wudimei.com!339c thread id: 4934 Hello world, wudimei.com! thread id: Hello world, wudimei.com!4934 thread id: 339c


网友评论