🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
mingw + opengl link error
I ust CodeBlocks + minGW and create a project of default template "Glut Project"
and CodeBlocks gen some default code snippet for me.At the header file, it use
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
I copy the glut.h to minGW/include and write link flag in project setting(eg.libglut32.a)
but when I build it take some error like:unreference defination: imp_glViewport
but then I modify the code like this
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
//#include <GL/glut.h>
#endif
#include <GL/gl.h>
#include <GL/glut.h>
everything is OK.
why?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement