无法在动态链接库中找到过程入口点 - 在错误的 DLL 中查找

The procedure entry point could not be located in the dynamic link library - looking in wrong DLL(无法在动态链接库中找到过程入口点 - 在错误的 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 时使用 /OPT:NOREF 构建的 vlc:REF https://forum.videolan.org/viewtopic.php?f=32&t=98097

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

基础教程推荐