编译组建出错。--------------------Configuration: game - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
gameView.cppgameView.obj - 0 error(s), 0 warning(s)--------------------Configuration: game - Win32 Debug--------------------
Compiling...
Skipping... (no relevant changes detected)
StdAfx.cpp
Compiling...
MainFrm.cpp
d:\program files\编程相关\c++程序\myproject\game1\game_final2\gameview.h(60) : error C2143: syntax error : missing ';' before '*'
d:\program files\编程相关\c++程序\myproject\game1\game_final2\gameview.h(60) : error C2501: 'CGameDoc' : missing storage-class or type specifiers
d:\program files\编程相关\c++程序\myproject\game1\game_final2\gameview.h(60) : error C2501: 'GetDocument' : missing storage-class or type specifiers
Generating Code...
Skipping... (no relevant changes detected)
game.cpp
gameDoc.cpp
GameSetDlg.cpp
gameView.cpp
执行 cl.exe 时出错.game.exe - 1 error(s), 0 warning(s)
/////////////////////////////////////////////////////////////////////////曾经试过将
class CGameView : public CView内的:
CGameDoc* GetDocument();注释掉,再全部重建,然后把注释去掉,最后再编译组建,又没问题了。
可是现在如法炮制却不行了。