[SDL] [MACOSX] OpenGL framework mandatory for SDL programs ?

Bob Ippolito bob at redivi.com
Thu Jan 27 08:08:43 PST 2005

On Jan 27, 2005, at 5:45, Patrice Mandin wrote:

> 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.


More information about the SDL mailing list