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
- CString 到 char* 2021-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 初始化列表*参数*评估顺序 2021-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
