简体   繁体   English

Glew运行时/链接器错误

[英]Glew Run Time/Linker Error

No sure why, but every time I run my OpenGL program on my home computer a message box pops up at runtime stating "The procedure entry point glewInit could not be located int he dynamic link library glew32.dll". 不知道为什么,但是每次我在家用计算机上运行OpenGL程序时,都会在运行时弹出一个消息框,指出“无法在动态链接库glew32.dll中找到过程入口点glewInit”。 Now I am almost certain I installed everything properly, I followed the instructions from the glew webpage and I can even get the program to run on my work computer. 现在,几乎可以肯定我已正确安装了所有程序,并遵循了glew网页上的说明,甚至可以使该程序在我的工作计算机上运行。 I've tried searching online for solutions to this error but most people with this error have it because they forgot to include the dll file in the linker dependencies (Which is not my issue.) Does anyone have any insight on how to correct or circumvent this error? 我曾尝试在线搜索此错误的解决方案,但大多数出现此错误的人都有此错误,因为他们忘记了在链接程序依赖项中包含dll文件(这不是我的问题。)是否有人对如何纠正或规避有任何见解?这个错误? My current operating system is Windows 7 Professional edition (2009). 我当前的操作系统是Windows 7专业版(2009)。

Quick solution of last resort is to look for an other glew32.dll on your system shipped with an other application (you can easily find such an application over the web). 不得已的快速解决方案是在系统上寻找其他应用程序附带的另一个glew32.dll(您可以在网络上轻松找到这样的应用程序)。

The problem appears when mixing headers/libs versions. 混合标题/库版本时出现此问题。 It will compile, but while the older versions declares glewInit as entry point, the newer ones (1.9 for sure) declares _glewInit@0 in release configuration. 它将编译,但是旧版本将glewInit声明为入口点,而较新版本(肯定为1.9)在发行版配置中声明_glewInit@0

Confusing your last compilation output with an old debug exe can also produce such a situation. 将您的最后一个编译输出与旧的调试exe混淆也可能导致这种情况。

不知道是什么问题,但是我重新下载了glew,我想我可能一直缺少头文件(不是glew.h),这迫使它崩溃了,但没有那么有用的错误消息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM