一个程序,按下F5调试,在调试过程中,一不小心按下了Compile键,系统自动退出调试,再编译,冒出102个错误,6个警告,冤枉啊,两三天的努力哦.
警告是这种:C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(39) : warning C4273: 'public: static class CWnd const CWnd::wndBottom' : inconsistent dll linkage. dllexport assumed.
错误是这种:C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(38) : error C2491: 'CWnd::wndTop' : definition of dllimport static data member not allowed修改是无从下手,关闭再重启,也没济于事,怎么办?
警告是这种:C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(39) : warning C4273: 'public: static class CWnd const CWnd::wndBottom' : inconsistent dll linkage. dllexport assumed.
错误是这种:C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINCORE.CPP(38) : error C2491: 'CWnd::wndTop' : definition of dllimport static data member not allowed修改是无从下手,关闭再重启,也没济于事,怎么办?
估计你的情况是编译器出现还未正常结束debug状态,程序中的一些在debug状态下运行的参数还没改回就退出了,所以后来也无法正常运行。
为了你的程序不留下什么隐患,推荐你用方法一吧,除非你确切知道编译器在哪些地方动了手脚。