[SDL] Problem with SDL/OpenGL & Visual C++ 6
Mikkel Gjøl
s971661 at student.dtu.dk
Thu Feb 19 13:57:53 PST 2004
Nathan Demick wrote:
> For some reason VC++ doesn't like the gl.h file I have, but reinstalling the
> OpenGL headers/libraries doesn't fix it. I've been mucking around, trying to fix
> this problem, but am really at my wits' end here. Any insight would be much
> appriciated.
- try inserting
#ifdef WIN32
#include <windows.h>
#endif
- before
#include <GL/gl.h>
And you should link to opengl32.lib, sdlmain.lib, sdl.lib. Furthermore
if linking dynamically (which is the most common I guess), you should set:
in project settings -> C/C++ -> Category [Code Generation] ->
Multithreaded DLL
- instead of single-threaded!
Regards,
\\Mikkel Gjoel
More information about the SDL
mailing list