The procedure entry point could not be located in the dynamic link library - looking in wrong DLL(无法在动态链接库中找到过程入口点 - 在错误的 DLL 中查找)
问题描述
在针对特定配置构建时,我的程序似乎在错误的 DLL 中寻找特定函数.这些函数在不同的 DLL 中定义,并在完全独立的代码部分中使用,并且错误总是指向同一个 DLL (libvlc.dll).如果我在不同的配置中构建或使用 libvlc.dll 禁用任何东西,一切正常.一切都建立起来没有错误或警告,但程序会在使用 Debug -> Step Into 时在命中第一行之前崩溃
When building for a specific configuration, my program seems to be looking for specific functions in the wrong DLL. These functions are defined in different DLLs, and used in completely separate sections of the code, and the error is always referring to the same DLL (libvlc.dll). If I build in a different configuration or disable anything using libvlc.dll, everything works. Everything builds without errors or warnings, but the program will crash before the first line is hit when using Debug -> Step Into
The procedure entry point ReportFault could not be located in the dynamic link library libvlc.dll
The procedure entry point curl_easy_setopt could not be located in the dynamic link library libvlc.dll
The procedure entry point ogg_stream_packetin could not be located in the dynamic link library libvlc.dll
推荐答案
结果证明这是由于我的项目使用 /OPT 时使用
https://forum.videolan.org/viewtopic.php?f=32&t=98097/OPT:NOREF
构建的 vlc:REF
This turned out to be caused by vlc being built with /OPT:NOREF
while my project was using /OPT:REF
https://forum.videolan.org/viewtopic.php?f=32&t=98097
这篇关于无法在动态链接库中找到过程入口点 - 在错误的 DLL 中查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法在动态链接库中找到过程入口点 - 在错误的 DLL 中查找


- 近似搜索的工作原理 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 静态初始化顺序失败 2022-01-01
- 从python回调到c++的选项 2022-11-16
- Stroustrup 的 Simple_window.h 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- C++ 协变模板 2021-01-01