Undefined reference to 'imp____glewEnableVertexAttribArray'

前端 未结 3 494
时光取名叫无心
时光取名叫无心 2021-01-17 03:00

I\'m trying to compile a program I am doing from a tutorial which is written in C++ and open gl 2.1. However, I don\'t like FreeGLUT so I decided to change the windowing pro

相关标签:
3条回答
  • 2021-01-17 03:39

    Use #pragma comment(lib, "glew32.lib") after including the libraries. glew32.lib

    0 讨论(0)
  • 2021-01-17 03:42

    Undefined references (name mangling) of the *_imp__* variety are caused by an attempt to link against a library compiled by / for Visual Studio / MSVC.

    The solution is to download binaries or compile for your specific platform (often this comes up in relation to mingw32).

    0 讨论(0)
  • 2021-01-17 03:46

    http://julianibarz.wordpress.com/2010/05/12/glew-1-5-4-mingw32/

    Got GLEW for mingw32 - project compiles fine.

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