请问stlport安装时的一个小问题(希望梦魇也look)
我使用的
http://jjhou.csdn.net/myan-stlport.htm这上的文章,对stlport进行安装
系统win2000,vc6.0,stlport4.0
在win2000上是没有ms-dos的,使用命令行行吗?就是使用cmd
我使用的是命令行,
其中在ms-dos下执行这样的一个命令的时候就出现了问题
. 执行命令make clean all
在命令行下出现的结果是说“make不是内部的命令,也不是可运行的程序”
按照梦魇的说法,这里应该进行编译stlport的文件,还比较费时,可是这该怎么办啊
问题点数:20、回复次数:4Top
1 楼yjh1982(血精灵)回复于 2005-02-23 09:12:08 得分 0
nmakeTop
2 楼Cadillac(努力学好C++发奋学好English)回复于 2005-02-23 09:41:50 得分 0
可视nmake出现了错误的啊
---------------------------
CL.EXE - 无法找到 DLL
---------------------------
无法找到动态链接库 mspdb60.dll 于指定的路径 F:\Program Files\Microsoft Visual Studio\VC98\Bin;.;F:\WINNT\system32;F:\WINNT\system;F:\WINNT;F:\Oracle\product\10.1.0\Client_2\bin;F:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\client;F:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin;F:\WINNT\system32;F:\WINNT;F:\WINNT\System32\Wbem;F:\Program Files\Microsoft SQL Server\80\Tools\BINN;F:\j2sdk1.4.0\bin;F:\Program Files\Intel\CPP\Compiler80\Ia32\Bin;F:\Program Files\Intel\CPP\IDB73\Bin;F:\Program Files\Microsoft Visual Studio\VC98\Bin 上。
---------------------------
确定
---------------------------
出现了这样的对话框,这该怎么办
我的vc和stl装在f,系统也是f盘
Top
3 楼darkstar21cn(≮天残≯无畏)(死亡进行时)回复于 2005-02-23 10:22:15 得分 0
要设置一下路径,要不然找不到的。
vc 6.0我没用过stl,所以不能多说什么,用vc 2003/2005,设置好了,没就没什么问题了。Top
4 楼zbzpo2002(庄楠)回复于 2005-02-26 18:13:10 得分 20
应该是nmake clean all吧
设置环境变量:
我的电脑->右键->属性->高级(选项卡)->环境变量->path = ????(cl.exe的路径)
运行 cmd
按照以前梦魇的帖子,或是install的帮助提示,完成操作.记住用nmake.exe
如果成功会生成lib文件,和几个dll,你在vc6的目录下,...\....\include 下会多一个stlport的子目
录.在tools\options\路径 下加入你的stlport库的路径下面运行测试程序:
#include <iostream>
#include <rope>
using namespace std;
int main()
{
// crope就是容纳char类型字符的rope容器
crope bigstr1("It took me about one hour ");
crope bigstr2("to plug the STLport into Borland C++!");
crope story = bigstr1 + bigstr2;
cout << story << endl;
return 0;
}
以上程序来自梦魇的帖子.
一般来说,看两个方面,编译是否通过,连接是否成功.
如果出现以下错误
--------------------Configuration: stlport - Win32 Debug--------------------
Compiling...
stlport.cpp
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2414) : error C2143: syntax error : missing ';' before '<'
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2414) : error C2501: 'basic_ostream' : missing storage-class or type specifiers
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2414) : error C2059: syntax error : ';'
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2414) : error C2059: syntax error : '<'
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2416) : error C2065: '_CharT' : undeclared identifier
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2416) : error C2065: '_Alloc' : undeclared identifier
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2427) : error C2653: 'crope' : is not a class or namespace name
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2427) : error C2146: syntax error : missing ';' before identifier '__mutable_reference_at'
e:\library\stlport-4.6.2\stlport\stl\_rope.h(2427) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
请将你假如的库的路径向上调到第一个,应该可以解决.
如果连接有错误,注意你的lib是否加入到指定目录了.
还有请用多线程调试,在projrct-->settings里的c++选项卡里选.Top




