请各位大虾帮帮忙,一个STL的问题?

ANDYLUAN 2002-02-03 10:19:28
我把stlport移植到vc6.0时遇到这样一个问题:
首先执行:nmake clean all 后得到如下结果:

..\\stlport\ctime(25):ffatal error c1083:Connot open include file '../include/ctime':No Such file or directory'
nmake:fatal error u1077:'c:\program\micros~1\vc98\bin\c1.exe:return code:'0x2'stop.

而后修改了,包含的头文后,又出现另外下种提示:如下

cl.exe /nologo /c /Zi /W3 /GR /GX /D "WIN32" /D "_WINDOWS" /I "..\\stlport" /Zm800 /FI "vc_warning_disable.h" /D "_MBCS" /FD /D "_STLP_NO_FORCE_INSTANTIATE" /MT /O2 /DNDEBUG /Fo"..\\lib\\obj\\VC6\\Release\\" /Fd"..\\lib\\obj\\VC6\\Release\\" /YXstlport_prefix.h /Fp..\\lib\\obj\\VC6\\Release\stlport.pch .\dll_main.cpp
dll_main.cpp
..\\stlport\ctime(33) : error C2039: 'clock_t' : is not a member of '`global namespace''
..\\stlport\ctime(33) : error C2873: 'clock_t' : symbol cannot be used in a using-declaration
..\\stlport\ctime(34) : error C2039: 'time_t' : is not a member of '`global namespace''
..\\stlport\ctime(34) : error C2873: 'time_t' : symbol cannot be used in a using-declaration
..\\stlport\ctime(35) : error C2039: 'tm' : is not a member of '`global namespace''
..\\stlport\ctime(35) : error C2873: 'tm' : symbol cannot be used in a using-declaration
..\\stlport\cstdlib(42) : error C2039: 'div_t' : is not a member of '`global namespace''
..\\stlport\cstdlib(42) : error C2873: 'div_t' : symbol cannot be used in a using-declaration
..\\stlport\cstdlib(43) : error C2039: 'ldiv_t' : is not a member of '`global namespace''
..\\stlport\cstdlib(43) : error C2873: 'ldiv_t' : symbol cannot be used in a using-declaration
..\\stlport\cstddef(42) : error C2039: 'ptrdiff_t' : is not a member of '`global namespace''
..\\stlport\cstddef(42) : error C2873: 'ptrdiff_t' : symbol cannot be used in a using-declaration
..\\stlport\new(50) : fatal error C1083: Cannot open include file: '../include/new': No such file or directory

不知如何解决,请各位大侠多指教。
...全文
219 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
garfield_82 2002-02-03
  • 打赏
  • 举报
回复
能把完整的过程写出来吗?看样子好像是路径不对。
iamabird 2002-02-03
  • 打赏
  • 举报
回复
using namespace std;
iamabird 2002-02-03
  • 打赏
  • 举报
回复
using namespace std
iamabird 2002-02-03
  • 打赏
  • 举报
回复
namespace std
zheng_can 2002-02-03
  • 打赏
  • 举报
回复
VC6对STL的支持不是很好
换用.Net试试看吧

15,440

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧