标题:链接错误
只看楼主
lzyren2008
Rank: 1
等 级:新手上路
帖 子:36
专家分:0
注 册:2007-8-12
 问题点数:0 回复次数:2 
链接错误

请问各位老虾,在VC中写的个主窗口程序,编译没问题,但链接时却出现如下问题,请教这是什么原因造成的,这与电脑病毒有关系吗?
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/WinMain.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.

WinMain.exe - 1 error(s), 0 warning(s)

搜索更多相关主题的帖子: 链接 
2007-11-14 16:05
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
得分:0 
Project->setting->link

project Options: subsystem:console---> subsystem:windows

Go confidently in the  directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-11-14 18:46
lzyren2008
Rank: 1
等 级:新手上路
帖 子:36
专家分:0
注 册:2007-8-12
得分:0 
按你的方法改过后,已可运行了,非常感谢!请问这样改的什么东西,为什么要改呢?
2007-11-14 20:19



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-185909-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.206105 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved