Undefined link to `_imp__glewInit @ 0 '

I built glew lib so many times. My latest build removed undefined links to all shader functions like glCreateShader() . I think this assembly is the right reason that I discovered that Code:Blocks can open Visual Studio 6.0 projects so that I have everything that was for me.

I can compile my application without calling glewInit() , but this leads to the fact that SEGFAULT has the right to call glCreateShader() . This is not caused by glew initialization.

I need to enable it, but that won't let me XD

links: mingw32, glew32, opengl32, glu32, glut32

IDE: Code :: Blocks

Compiler: Mingw32

+6
source share
2 answers

Save a ton of problems and just add glew.c to your project directly. I don’t understand why people are fighting so hard to refer to it from the outside. The license is friendly and this is only one source file. Just remember #define GLEW_STATIC .

+18
source

The glew32 link after using the libs that use it.

0
source

Source: https://habr.com/ru/post/921610/


All Articles