vc++编译link的问题

newsxj 2003-03-24 10:25:50
各位好:
我是VC++6的新手,在编译link时出现以下问题,寻求帮助。Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/demo2_3.exe : fatal error LNK1120: 1 unresolved externals
...全文
15 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
EricHxy 2003-03-24
  • 打赏
  • 举报
回复
如果是Dos程序,应该要有main函数作为EXE文件的入口点。
如果是Win程序,应该要有Winmain作为入口点。
EricHxy 2003-03-24
  • 打赏
  • 举报
回复
找不到main函数
loopyifly 2003-03-24
  • 打赏
  • 举报
回复
更详细内容参见msdn
loopyifly 2003-03-24
  • 打赏
  • 举报
回复
Linker Tools Error LNK2001
unresolved external symbol "symbol"

Code will generate this error message if it references something (like a function, variable, or label) that the linker can’t find in all the libraries and object files it searches. In general, there are two reasons this error occurs: what the code asks for doesn’t exist (the symbol is spelled incorrectly or uses the wrong case, for example), or the code asks for the wrong thing (you are using mixed versions of the libraries?some from one version of the product, others from another version).

Numerous kinds of coding and build errors can cause LNK2001. Several specific causes are listed below, and some have links to more detailed explanations.

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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