编译STL时遇到这样的错误,该如何解决?

wenminghu 2005-04-01 09:58:11
D:\XPLib\STLport\src>nmake clean all

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

rd /S /Q ..\\lib\\obj\\VC6\\Release ..\\lib\\obj\\VC6\\Debug ..\\lib\\ob
j\\VC6\\DebugSTL ..\\lib\\obj\\VC6\\Releasex ..\\lib\\obj\\VC6\\Debugx ..\\lib\
\obj\\VC6\\DebugSTLx ..\\lib\\obj\\VC6\\ReleaseD ..\\lib\\obj\\VC6\\DebugD ..\\
lib\\obj\\VC6\\DebugSTLD ..\\lib\\SunWS_cache SunWS_cache ..\\lib\\Templates.DB
Templates.DB tempinc
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
A subdirectory or file ..\\lib already exists.
A subdirectory or file ..\\lib\\obj already exists.
A subdirectory or file ..\\lib\\obj\\VC6 already exists.
mkdir ..\\lib\\obj\\VC6\\Release
cl.exe /nologo /c /Zi /W3 /GR /GX /D "WIN32" /D "_WINDOWS" /I "..\\stlpo
rt" /Zm800 /FI "vc_warning_disable.h" /D "_MBCS" /FD /D "_STLP_NO_FORCE_INSTANT
IATE" /MT /O2 /DNDEBUG /Fo"..\\lib\\obj\\VC6\\Release\\" /Fd"..\\lib\\obj\\VC6
\\Release\\" .\dll_main.cpp
dll_main.cpp
cl.exe /nologo /c /Zi /W3 /GR /GX /D "WIN32" /D "_WINDOWS" /I "..\\stlpo
rt" /Zm800 /FI "vc_warning_disable.h" /D "_MBCS" /FD /D "_STLP_NO_FORCE_INSTANT
IATE" /MT /O2 /DNDEBUG /Fo"..\\lib\\obj\\VC6\\Release\\" /Fd"..\\lib\\obj\\VC6
\\Release\\" .\fstream.cpp
fstream.cpp
C:\Microsoft SDK\Include\.\winbase.h(1392) : error C2733: second C linkage of ov
erloaded function 'InterlockedIncrement' not allowed
C:\Microsoft SDK\Include\.\winbase.h(1390) : see declaration of 'Interlo
ckedIncrement'
C:\Microsoft SDK\Include\.\winbase.h(1399) : error C2733: second C linkage of ov
erloaded function 'InterlockedDecrement' not allowed
C:\Microsoft SDK\Include\.\winbase.h(1397) : see declaration of 'Interlo
ckedDecrement'
C:\Microsoft SDK\Include\.\winbase.h(1407) : error C2733: second C linkage of ov
erloaded function 'InterlockedExchange' not allowed
C:\Microsoft SDK\Include\.\winbase.h(1404) : see declaration of 'Interlo
ckedExchange'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
...全文
76 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wenminghu 2005-04-01
  • 打赏
  • 举报
回复
我按照说明来的啊,首先 copy vc6.mak Makefile
然后就 nmake clean all
接着就遇到这个错误.
livelivelive 2005-04-01
  • 打赏
  • 举报
回复
看着晕,说说具体操作步骤吧

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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