|
|

楼主 |
发表于 2006-10-3 19:34:00
|
显示全部楼层
Re:疑问:在VC++中正常编译并能运行,但是,生成的EXE文件
如果选警告作为错误,则有若干错误:
这些都是什么错误?
--------------------Configuration: hwb - Win32 Debug--------------------
Compiling...
hwb.cpp
F:\3d\6\hwb.cpp(77) : error C2220: warning treated as error - no object file generated
F:\3d\6\hwb.cpp(77) : warning C4100: 'nCmdShow' : unreferenced formal parameter
F:\3d\6\hwb.cpp(77) : warning C4100: 'lpCmdLine' : unreferenced formal parameter
F:\3d\6\hwb.cpp(77) : warning C4100: 'hPrevInstance' : unreferenced formal parameter
F:\3d\6\hwb.cpp(234) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(235) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(239) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(239) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(243) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(244) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(247) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(247) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(251) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(252) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(446) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(609) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(610) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(758) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
F:\3d\6\hwb.cpp(759) : warning C4244: '=' : conversion from 'int' to 'unsigned short', possible loss of data
执行 cl.exe 时出错.
hwb.exe - 1 error(s), 0 warning(s)
|
|