未解决的外部符号 [英] unresolved external symbol
本文介绍了未解决的外部符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我使用的是Visual C ++ 2005 Express Edition,我想实现一个简单的c ++程序,它有一个头文件和一个实现文件。
头文件:
hello,
I use the Visual C++ 2005 Express Edition and I want to implement a
simple c++ programm which has a header file and a implementation file.
the header file:
展开 | 选择 | Wrap | 行号
推荐答案
pat270881 schrieb:
pat270881 schrieb:
hello,
我使用Visual C ++ 2005 Express Edition我想要实现一个简单的c ++程序,它有一个头文件和一个实现文件。
hello,
I use the Visual C++ 2005 Express Edition and I want to implement a
simple c++ programm which has a header file and a implementation file.
[snip]
链接器清楚地说明了他缺少的东西:
[snip]
Here the linker clearly states what he is missing:
msvcrtd.lib(crtexe.obj):错误LNK2019:未解析的外部符号
_main在函数中引用___tmainCRTStartup
msvcrtd.lib(crtexe.obj) : error LNK2019: unresolved external symbol
_main referenced in function ___tmainCRTStartup
你需要定义一个main()函数:
int main()//或:
int main(int argc,char * argv [] )
-
Thomas
http://www.netmeister.org/news/learn2quote.html
好的,非常感谢你!不幸的是我还有一个问题,我现在有以下内容:b / b
头文件:
okay thank you very much! unfortunately I have one more problem, I have
now the following:
the header file:
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号
pat270881 schrieb:
pat270881 schrieb:
好的,非常感谢你!不幸的是我还有一个问题,我现在有以下内容:b / b
头文件:
okay thank you very much! unfortunately I have one more problem, I have
now the following:
the header file:
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号
这篇关于未解决的外部符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文