[英]Ms Visual Studio 2012, “unresolved external symbol”
I am trying to compile a C++ application through Microsoft Visual Studio 2012. I have linked the Boost, Jni, Acml libraries to the application. 我正在尝试通过Microsoft Visual Studio 2012编译C ++应用程序。我已将Boost,Jni,Acml库链接到该应用程序。
When I click on rebuild, the compilation does not finish. 当我单击重建时,编译未完成。 This is the first error I get:
这是我得到的第一个错误:
Error 28 error LNK2019: unresolved external symbol _sgesdd referenced in function "void __cdecl testLapackDGESDD_EASY(void)" (?testLapackDGESDD_EASY@@YAXXZ) C:\\Users\\DavideChicco\\Documents\\Visual Studio 2012\\Projects\\Solution\\mainConsole.obj
错误28错误LNK2019:函数“ void __cdecl testLapackDGESDD_EASY(void)”(?testLapackDGESDD_EASY @@ YAXXZ)中引用了无法解析的外部符号_sgesdd C:\\ Users \\ DavideChicco \\ Documents \\ Visual Studio 2012 \\ Projects \\ Solution \\ mainConsole.obj
Do you have any idea of what this is related to? 您有什么想法吗?
Thanks 谢谢
Your compilation seems to have finished, but the error happens during linking: the definition of the function _sgesdd
called in testLapackDGESDD_EASY
is not found. 你的编译似乎已经结束,但在连接过程中发生的错误:函数的定义
_sgesdd
称为testLapackDGESDD_EASY
没有找到。 So 所以
- either this function is defined in an external dll
, and you need to add the lib
in your solution, -该函数是在外部
dll
定义的,并且您需要在解决方案中添加lib
,
- or this function is supposed to be defined in your project, and you need to implement its definition. -或者应该在您的项目中定义此函数,并且您需要实现其定义。
啊哈,编译器找不到函数“ _sgesdd”,我建议您添加由DLL作者提供的库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.