将STLPort解压出来。为STLPort注册环境变量。

在VC安装目录里搜索“vcvars32.bat”文件出来。找到INCLUDE这个键,将$(STLPort)\stlport注册进去。然后在机器中的环境变量中注册INCLUDE这个变量,将此目录也注册好。

开始编译,进入$(STLPort)\src目录。
copy vc71.mak makefile
这一步就是将一个vc71版本的mak做为makefile文件。
然后使用nmake开始编译。
也可以使用这个来做
nmake -f vc71.mak

这里我做了一个例子来来说明使用这个STLPort..

#include <stl/_config.h>
#include <stl/_vector.h>
#include <iostream>

using namespace _STLP_STD;
using namespace std;
void main()
{
vector<int> arrInt;
for (int i=0;i<100;i++)
arrInt.push_back(i);
for (i=0;i<100;i++)
  cout<<arrInt[i]<<endl;
return ;
}

相关文章:

  • 2022-12-23
  • 2021-06-23
  • 2021-06-14
  • 2021-12-24
  • 2021-11-25
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-08-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
相关资源
相似解决方案