编译时出现如下错误,我的系统是W2KPRO+SP4 , VC+SP5的,以前编译是没有问题的,突然出现这个问题,怎么都解决不了,VC都重新装了,各位以前碰到过是怎么解决的?
fatal error C1189: #error :  You need a Windows 2000 or later to run this stub because it uses these features:
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
系统找不到指定的文件。
Error executing c:\winnt\system32\cmd.exe.

解决方案 »

  1.   

    你用了全角字符
    如把 
    int a=0; 
    写成了
    int a=0;
      

  2.   

    NMAKE Fatal Error U1077'program' : return code 'value'The given command or program called by NMAKE failed and returned the given exit code.To suppress this error and continue the NMAKE session, use the /I option, the .IGNORE dot directive, or the dash (-) command modifier. To continue the NMAKE session for unrelated parts of the dependency tree, use the /K option.
      

  3.   

    You may also see this error if you build an ATL project with the /robust MIDL compiler option. /robust is only for use when building for a Windows 2000 or later machine. So, either remove /robust or change this line in the dlldatax.c file:#define _WIN32_WINNT 0x0400   //for WinNT 4.0 or Win95 with DCOM
    to #define _WIN32_WINNT 0x0500   //for WinNT 4.0 or Win95 with DCOM
      

  4.   

    你们都错了, whiteclouds(蓝蓝的天上白云飘) 比较搞笑,重装系统还用你说
    , modena(非云)是找的MSDN吧?我是这么解决的,把PROJECTSETTING中的Post
    build step选项页下的命令都删除就可以了。