1.下载boost开发库源码. 2.使用vs2008的命令行工具,进入到源码目录xxx/boost_1_58_0,命令行中运行bootstrap.bat,生成文件b2.exe,在命令行中执行b2.exe. 3.等待boost库编译连接完成,提示如下: The Boost C++ Libraries were successfully built!The following directory should be added to compiler include paths: xxx/bo
1.MFC下生成动态库 1>显式调用 在.cpp文件里添加接口函数 int sum(int a,int b) { return a + b; } int sub(int a,int b) { return a - b; } 在.def文件里标示导出接口 sum @ sub @; 编译即可生成动态库 在.exe里调用 在头文件里添加 #pragma comment(lib,"TestDLL") int sum(int a,int b); int sub(int a,int b);
Boost官网的<Geting Started On Windows>(http://www.boost.org/doc/libs/1_38_0/more/getting_started/windows.html)提到了Boost库的命名,摘录如下: 以 libboost_regex-vc71-mt-d-1_34.lib 为例: lib 前缀:除了Microsoft Windows之外,每一个Boost库的名字都以此字符串开始.在Windows上,只有普通的静态库使用lib前缀:导入库和DLL