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 中查找


基础教程推荐
- 我有静态或动态 boost 库吗? 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 常量变量在标题中不起作用 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 这个宏可以转换成函数吗? 2022-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01