未解决的外部 [英] unresolved externals

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

问题描述

大家好,
我在createthread函数时遇到问题,因为当
我在头文件中实现了它,但效果很好,但是在源文件中
我收到以下错误代码
LNK2019和LNK1120
不知道错误代码是否对您有帮助
因为msdn只是描述了什么,而不是确切地解决问题
而且我尝试链接到kernel32.lib,它确实起作用了
哦,所有人都忘了我正在使用Win32 Windows项目,

顺便说一句,如果有人可以告诉/给出指向允许标签的链接,那将是很遗憾
在此先感谢awnsours

Hi all,
I''m haveing a problem with the createthread function, becouse when
I implement it in the header file it works fine but in the source file
I get the following error codes
Lnk2019 and lnk1120
don''t know if the error codes help you
Becouse the msdn just discribes what thay are and not exactly how to solve the prob
And I tried linking to kernel32.lib and it dident work
oh all moust forgot I''m using win32 windows project,

And by the way if some one could tell/give a link to allowed tags wouuld be grate
Thanks in advance for the awnsours

推荐答案

LNK2019:函数"function"中引用的未解析的外部符号"symbol"-这意味着您引用的是某些项目中未包含的外部类或函数.由于您没有发布完整的消息,因此无法猜测是什么引用导致了此问题.

LNK1120仅给出了未解决的外部数量.这表明您没有在项目中包括一些库;检查您的设置.
LNK2019: Unresolved external symbol ''symbol'' referenced in function ''function'' - which means that you are referring to some external class or function that has not been included in your project. Since you did not post the entire message it is impossible to guess what reference is causing the problem.

LNK1120 merely gives the count of unresolved externals. It suggests that you have failed to include some libraries in your project; check your settings.


这篇关于未解决的外部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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