Visual C++ 2010 Express for Win32 Project linking only works as administrator

不羁岁月 提交于 2019-12-11 18:14:28

问题


Using Visual C++ 2010 Express an as normal user, I created a Win32 Project with a main.cpp file containing: include

int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int)
{
    return 0;
}

At the linking stage, as a normal user, I get: MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

However, if I run the same project as administrator, it builds (links) fine and I get the required executable. Any ideas as to why this happens?

来源:https://stackoverflow.com/questions/7939541/visual-c-2010-express-for-win32-project-linking-only-works-as-administrator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!