[MACOSX] OpenGL framework mandatory for SDL programs?

Hello,

I would like to know if ‘sdl-config --libs’ on MacOSX returning something
with ‘-framework OpenGL’ is OK. On Linux or some other OS, an SDL
application has to add ‘-L/path/to/gl/lib -lGL’ to link against OpenGL
libraries. Does compiling a non-OpenGL SDL program without ‘-framework
OpenGL’ would work on MacOSX ?–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

I would like to know if ‘sdl-config --libs’ on MacOSX returning
something
with ‘-framework OpenGL’ is OK. On Linux or some other OS, an SDL
application has to add ‘-L/path/to/gl/lib -lGL’ to link against OpenGL
libraries. Does compiling a non-OpenGL SDL program without ‘-framework
OpenGL’ would work on MacOSX ?

Yes, of course it’s ok. Your program will work just fine without
"-framework OpenGL" so long as it doesn’t try and use symbols from
OpenGL directly, however, there is zero penalty for leaving it in
because SDL itself links to OpenGL anyway.

-bobOn Jan 27, 2005, at 5:45, Patrice Mandin wrote: