“MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 中被引用”提示这个错误。。。。下面我放上我操作的截图和代码。
代码:
#pragma comment(linker,"/subsystem:windows")
// myfirst.cpp--displays a message
#include <iostream> // a PREPROCESSOR directive
int main() // function header
{ // start of function body
using namespace std; // make definitions visible
cout << "Come up and C++ me some time."; // message
cout << endl; // start a new line
cout << "You won't regret it!" << endl; // more output
// If the output window closes before you can read it,
// add the following code:
// cout << "Press any key to continue." <<endl;
// cin.get();
return 0; // terminate main()
} // end of function body
希望大神帮我解决,快被这个搞死了,刚开始学就动不了了。。。。。。
意思是我需要重装系统。但是如果我卸载VC的话可能会出现卸载不完全,所以要重装系统吧?