错误的含义? [英] meaning of the error ?

查看:97
本文介绍了错误的含义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有


在构建项目时,

我在链接阶段发现了两个错误。


有什么能帮到我的意思吗?


链接...

创建库Debug / 15JulyBulid.lib和object

Debug / 15JulyBulid.exp

LIBCD.lib(crt0.obj):错误LNK2001:未解析的外部符号_main

Debug / 15JulyBulid.exe:致命错误LNK1120:1个未解析的外部件

执行link.exe时出错。


15JulyBulid.exe - 2个错误,0个警告


在此先感谢

Ranjeet

Dear All

While building the the project,
I am geting the two errors at linking stage.

Can any help me out what these exactly means ??

Linking...
Creating library Debug/15JulyBulid.lib and object
Debug/15JulyBulid.exp
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/15JulyBulid.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

15JulyBulid.exe - 2 error(s), 0 warning(s)

Thanks In Advance
Ranjeet

推荐答案

ra *********** @ gmail.com 写于15/07/05:
ra***********@gmail.com wrote on 15/07/05 :

在构建项目时,
我在链接阶段发现了两个错误。

能帮助我解决这些问题究竟意味着什么?

链接......
创建libra ry Debug / 15JulyBulid.lib和object
Debug / 15JulyBulid.exp
LIBCD.lib(crt0.obj):错误LNK2001:未解析的外部符号_main
Debug / 15JulyBulid.exe:致命错误LNK1120 :1个未解析的外部组件
执行link.exe时出错。

15JulyBulid.exe - 2个错误,0个警告

While building the the project,
I am geting the two errors at linking stage.

Can any help me out what these exactly means ??

Linking...
Creating library Debug/15JulyBulid.lib and object
Debug/15JulyBulid.exp
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/15JulyBulid.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

15JulyBulid.exe - 2 error(s), 0 warning(s)




听起来不是C-queston。更可能是编译器/链接器问题。

你应该仔细阅读你的编译器/链接器手册中有关''如何使用
制作库''或''如何制作一个可执行文件''取决于你想要做什么你想要做什么。


-

Emmanuel

C-FAQ: http:// www.eskimo.com/~scs/C-faq/faq.html

C库: http://www.dinkumware.com/refxc.html


有10种类型的人在今天的世界里;

那些了解二元的人,以及那些不懂的人。



Sounds not to be a C-queston. More likely it''s a compiler/linker issue.
You should read more carefully your compiler/linker manual about ''how
to make a library'' or ''how to make an executable'' depending what you
want to do exactly.

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

"There are 10 types of people in the world today;
those that understand binary, and those that dont."


Hi Ranjeet,

坦率地说,这只是一个错误。


我有疑问。你想建立什么类型的应用程序?

执行官或图书馆?


看起来你正在建立一个图书馆,但你选错了

申请类型。




Hi Ranjeet,

Frankly, It''s only one error.

I have a quesition. What type of application do you want to build?
executive or library?

It seems like you are building a library but you choosed wrong
application type.

Ken


ra *********** @ gmail.com 写道:
ra***********@gmail.com writes:
LIBCD。 lib(crt0.obj):错误LNK2001:未解析的外部符号_main
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main




您的C程序不包含名为main()的函数。

每个便携式C程序必须。

-

Ben Pfaff

电子邮件: bl*@cs.stanford.edu

web: http://benpfaff.org


这篇关于错误的含义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆