I'm having a weird issue with my linker for cygwin. I've used it in the past and had success compiling code that includes opengl glut etc, but now I'm having issues.
g++ main.cpp -lglut32 -lglu32 -lopengl32 -lglew32
I can compile it in Visual studio fine but due to some issues i'm having with trying to install FLTK for it, I decided to switch to g++.
After trying to compile it tells me that there are undefined references to all of the OpenGL functions.
I've even tried explicitly pointing to the directories containing libopengl32.a with the following
g++ -L/lib/w32api/ -L/usr/X11R6/lib/ main.o -lglut32 -lopengl32 -lglu32 -lglew32
Although this cleared up my errors in finding libglew32.a, it was unsuccessful with the opengl library, giving me linking errors like:
main.o:main.cpp.text+0x1ef): undefined reference to `_glClearColor'
If anyone knows whats wrong with my setup please let me know....
Thanks



LinkBack URL
About LinkBacks
.text+0x1ef): undefined reference to `_glClearColor'


