简体   繁体   English

未解决的外部符号错误

[英]Unresolved external symbol error

I am getting the following error in my VC++ COM project. 我在VC ++ COM项目中遇到以下错误。 What is the problem in linking the lib files here? 在此处链接lib文件有什么问题?

Error 4 error LNK2019: unresolved external symbol _BVUOpen@8 referenced in function "unsigned int __stdcall AFunc(void *)" (?AFunc@@YGIPAX@Z) CBillAcceptor.obj BillAcceptorCOM 错误4错误LNK2019:在函数“ unsigned int __stdcall AFunc(void *)”中引用了未解析的外部符号_BVUOpen @ 8(?AFunc @@ YGIPAX @ Z)CBillAcceptor.obj BillAcceptorCOM

Here are the explanation of the LNK2019 error : MSDN . 这是LNK2019错误的解释: MSDN

Look for a problem of definition about BVUOPen symbol ! 寻找有关BVUOPen符号的定义问题! The problem si inside the method AFunc Maybe, you haven't declare it correctly or haven't link the library or haven't export the symbol... 方法AFunc内的问题si,也许是因为您未正确声明它,未链接库或未导出符号...

Probably, you need to link against some external library that contains the object code for the BVUOpen function. 可能需要链接到一些包含BVUOpen函数的目标代码的外部库。 The name of that library is not obvious from your error message, but it should be possible to work out from the documentation you are coding from. 该库的名称从您的错误消息中并不明显,但是应该可以从您要编码的文档中得出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM