SDL lgpl
However, if SDL is compiled separately from your app (i.e. you use SDL.DLL), then your app is not considered an enhancement to the SDL code, and you can have your own code under an entirely different license, as you want to do.
In short, if you keep SDL in a DLL, you can keep your source closed and use it in a commercial product.
There was some question a while back about the SDL_Main.c file, which MUST be compiled into your own code, but the SDL folks have since made it clear that that particular file is an exception to their own license.
---
John Hattan
The Code Zone
Sweet software for a saturnine world
(my byline from the Gamedev Collection series, which I co-edited) John Hattan has been working steadily in the casual game-space since the TRS-80 days and professionally since 1990. After seeing his small-format games turned down for what turned out to be Tandy's last PC release, he took them independent, eventually releasing them as several discount game-packs through a couple of publishers. The packs are actually still available on store-shelves, although you'll need a keen eye to find them nowadays. He continues to work in the casual game-space as an independent developer, largely working on games in Flash for his website, The Code Zone (www.thecodezone.com). His current scheme is to distribute his games virally on various web-portals and widget platforms. In addition, John writes weekly product reviews and blogs (over ten years old) for www.gamedev.net from his home office where he lives with his wife and daughter in their home in the woods near Lake Grapevine in Texas.
The license itself is a bit more detailed than that, but if you remember the above rules of thumb you should be ok.
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost | Asking Questions | Organising code files | My stuff ]