过程入口点不能位于动态链接库中 - 查找错误的DLL [英] The procedure entry point could not be located in the dynamic link library - looking in wrong DLL

查看:265
本文介绍了过程入口点不能位于动态链接库中 - 查找错误的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当为特定配置构建时,我的程序似乎在错误的DLL中寻找特定的函数。这些函数在不同的DLL中定义,并在代码的完全独立的部分使用,错误总是指同一个DLL(libvlc.dll)。如果我在一个不同的配置或禁用任何使用libvlc.dll,一切正常。一切构建没有错误或警告,但程序将在第一行命中之前崩溃使用调试 - >步入

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:REF / OPT:NOREF =https://forum.videolan.org/viewtopic.php?f=32&t=98097> 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆