Getting GLEW to compile in Code::Blocks

后端 未结 2 496
醉酒成梦
醉酒成梦 2021-01-21 18:05

I\'m wanting to get into and learn OpenGL in C++ and am using Code::Blocks. I was able to get freeglut to work, along with several online examples (as well as the example that

2条回答
  •  误落风尘
    2021-01-21 18:39

    You have problem in linker setting. You have to link

    glew32s.lib

    Not only glew32.lib you must link glew32s.lib also .Be sure that it must be at the top of the list of linker.

    While writting code don't forget to define

    #define GLEW_STATIC

    At the top of source file.

提交回复
热议问题