Visual Studio 2008 LINK2019错误?

tamyix 2010-05-10 08:54:02
VS2008中一个C程序build不能通过。
错误信息为:

1>------ Build started: Project: P080130_01, Configuration: Debug Win32 ------
1>Linking...1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>D:\example\Debug\example.exe : fatal error LNK1120: 1 unresolved externals
==========

请问怎么解决呢?分不够了,只能在这里发帖。
...全文
91 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
thinkli 2010-05-10
  • 打赏
  • 举报
回复
修改VC的设置如下:Project->Properties->Linker->System->SubSystem设成Not Set或者Console。话说可以试试VS2010。

682

社区成员

发帖
与我相关
我的任务
社区描述
提出问题
其他 技术论坛(原bbs)
社区管理员
  • community_281
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧