Benjamin Danger Johnson
Benjamin Danger Johnson

Reputation: 1221

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". 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. 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? My current operating system is Windows 7 Professional edition (2009).

Upvotes: 1

Views: 4071

Answers (2)

Flint
Flint

Reputation: 1711

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).

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.

Confusing your last compilation output with an old debug exe can also produce such a situation.

Upvotes: 4

Benjamin Danger Johnson
Benjamin Danger Johnson

Reputation: 1221

Not sure what the problem was, but I redownloaded glew, I think I might have been missing a header file (not glew.h) and that forced it to blow up with a less than helpful error message.

Upvotes: 1

Related Questions