Members - Reputation: 178
Posted 11 October 2012 - 11:51 AM
My include section in main.cpp looks like this:
The project linker looks like this
-lmingw32 -lSDLmain -lSDL
I get 1 linker error for every use of OpenGL functions/constants, I don't know why the linker complains.
Members - Reputation: 283
Posted 11 October 2012 - 02:48 PM
--> -lopengl32, -lglu32, -lglut, etc.
Try adding those above and see if it works.
Also, is the build target for a GUI window (graphical one?) rather than a console window(text one?). Be sure.
You mean "libopengl.a"?
I have the "lobopengl.a" library file
What does the linker error say?
Edited by Pointer2APointer, 11 October 2012 - 02:56 PM.
Crossbones+ - Reputation: 11348
Posted 11 October 2012 - 03:30 PM
There's your problem.
Get it off Dev-C++ first, see if the problem reproduces in a sane, modern and not-broken environment, and if so then investigate.
Essential reading: http://clicktobegin....ldnt-use-dev-c/
I don't know why the linker complains.
See first part of my answer.
Edited by mhagain, 11 October 2012 - 03:31 PM.
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.