Undefined reference to 'glewExperimental', 'glewInit@0', '__glewGenBuffers'
问题 I'm sorry if this is a duplicate question but I've looked through StackOverflow and Google and haven't come up with an answer yet. I'm using Code::Blocks and SDL and trying to get GLEW working with openGL. The program code is: #include <Windows.h> #include <SDL.h> #define GLEW_STATIC #include <glew.h> int main(int argc, char *argv[]) { //initialize SDL SDL_Init(SDL_INIT_VIDEO); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); SDL_GL_SetAttribute(SDL_GL_CONTEXT