OpenGL + GLEW + MinGW application linking issue

后端 未结 1 1461
暖寄归人
暖寄归人 2020-12-21 04:19

I\'m getting some undefined references when building my project. Here\'s the build log:

**** Build of configuration Debug for project test ****

**** Interna         


        
相关标签:
1条回答
  • 2020-12-21 04:56

    I solved "glew undefined reference" problems.

    My development environment is eclipse CDT with MinGW on Windows 7 (x64).

    The solution is the following 3 steps:

    1. Add source code: #define GLEW_STATIC
    2. Add linker flag: -lglew32s -lopengl32 -lfreeglut
    3. Add compiling flag: gcc -DGLEW_STATIC

    If needed, you have to add -lglu32 -glut32 etc.

    0 讨论(0)
提交回复
热议问题