VC60下的STLport 的使用环境配置步骤

1. 下载STLport-5.2.1

http://www.stlport.org/download.html

 

2. 解压下载过来的压缩文件到目录

C:/STLport-5.2.1 .

 

3. 在控制台中进入configure.bat文件所在目录

输入命令

# C:/STLport-5.2.1>configure msvc6

输出:

STLport Configuration Tool for Windows

 

Setting compiler: Microsoft Visual C++ 6.0

 

Setting platform: Windows XP

 

Done configuring STLport.

 

Go to build/lib folder and type "nmake clean install" to build  and

install STLport to the "lib" and "bin" folders.

Go to build/test/unit folder and type nmake clean install to

build unit tests and install them in bin folder.

 

 

4. 在控制台中进入C:/Program Files/Microsoft Visual Studio/VC98/Bin>

输入命令

# C:/Program Files/Microsoft Visual Studio/VC98/Bin>VCVARS32.BAT

输出:

Setting environment for using Microsoft Visual C++ tools.

 

5. 在控制台中进入C:/STLport-5.2.1/build/lib

输入命令

# C:/STLport-5.2.1/build/lib>nmake /fmsvc.mak install

输出:

一些编译信息

 

 

6. 编译完后, VC6工程中配置相应的 "Include, Lib, SRC"目录, 并移动到最上面

A. Include files     对应C:/STLport-5.2.1/stlport

 

B. Library files      对应C:/STLport-5.2.1/lib

 

 

C. Source files      对应C:/STLport-5.2.1/src

 

 

 

7. 注意

A. 最新版的可能不是这些步骤, 以其文档为准.

B. 使用了该库的程序运行时需要改库德动态库(如果不是静态编译)

C. 如果是使用VS2003/2005, 使用默认的STL就好了.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值