yurufeng
驱动牛犊
驱动牛犊
  • 注册日期2004-12-01
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1526回复:6

一个莫名其妙的错误!!求教!!

楼主#
更多 发布于:2004-12-23 19:36
今天在用VC做程序的时候不知道怎么出现这么莫名其妙的错误,不知道是哪出错了,反正是现在没办法正常使用,那位高手给看下是哪的问题啊!!急用着,谢谢了!!!
Compiling...
test.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

test.exe - 2 error(s), 0 warning(s)

请哪位高手给看看是哪的问题啊。说明下,我在VC下在做一般的程序,也在做WINDOWS下编程,还添加了做驱动的,反正环境变量设置我也不知道那么多了,哪位给分析下是哪的问题啊。
snowStart
驱动老牛
驱动老牛
  • 注册日期2004-04-06
  • 最后登录2011-06-02
  • 粉丝0
  • 关注0
  • 积分95分
  • 威望19点
  • 贡献值177点
  • 好评度1点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-12-23 21:21
If you are using Unicode and MFC, you will get an unresolved external on _WinMain@16 if you don’t create an entrypoint to wWinMainCRTStartup. Use the /ENTRY option or type this value in the Project Settings dialog box. (To find this option in the development environment, click Settings on the Project menu, then click the Link tab, and click Output in the Category box.) See Unicode Programming Summary.

See the following Knowledge Base articles located in the Online Information System for more information. An easy way to reach an article is to copy a "Q" number above, open the Search dialog box from the Help menu and select the Query tab, then paste the number into the first text box and press ENTER.
学习,关注,交流中... [email=fengyu@163.com]Email:snowstarth@163.com[/email] [url]http://bbs.zndev.com/?a=snowStart[/url]
yurufeng
驱动牛犊
驱动牛犊
  • 注册日期2004-12-01
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-12-23 21:39
呵呵,谢谢了,虽然仍然不能用,但是既然回答分肯定是要给的!!
yurufeng
驱动牛犊
驱动牛犊
  • 注册日期2004-12-01
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-12-23 21:43
不过真的不是很明白啊,可不可以用中文给我解释下,我用的是中文的VC,实在是特不方面,你所说的翻译过来也不是能很好的对应,能不能用中文给解释下啊
snowStart
驱动老牛
驱动老牛
  • 注册日期2004-04-06
  • 最后登录2011-06-02
  • 粉丝0
  • 关注0
  • 积分95分
  • 威望19点
  • 贡献值177点
  • 好评度1点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2004-12-24 08:45
你编译的使win32控制台程序吗?

检查一下
有没有使用多线程

主函数main或WinMain是一个还是两个
查看一下setting->link:output里面的入口函数
WinMainCRTStartup

或者把代码贴出来把
学习,关注,交流中... [email=fengyu@163.com]Email:snowstarth@163.com[/email] [url]http://bbs.zndev.com/?a=snowStart[/url]
yurufeng
驱动牛犊
驱动牛犊
  • 注册日期2004-12-01
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2004-12-24 17:00
这个是另外一张图片
yurufeng
驱动牛犊
驱动牛犊
  • 注册日期2004-12-01
  • 最后登录2005-01-04
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2004-12-24 17:04
我刚才用控制太程序测试了一下可以正常使用,那我现在该怎么办呢,怎么把它可以改会到APPLICATION程序呢?可以给我说说怎么修改环境变量啊?真的谢谢你了,不过还得麻烦你啊
游客

返回顶部