Frequently Asked Questions: Licensing


Table Of Contents


Q:What license does SDL use?
A:SDL is available under the GNU LGPL license.

Q:Can I use SDL in a commercial application?
A:The simple answer is "Yes", just dynamically link with SDL and you're fine.

Full details are available at: http://www.libsdl.org/license.php


Q:Can I use code from the test directory? From the examples?
A:Yes, code from the test directory and from the examples in the documentation is placed in the public domain. Anyone can use it for any purpose.

Q:Can I use code from the demos in my applications?
A:Each of the demos has it's own licensing restrictions. See the "COPYING" file in each demo's source directory for more information on a particular demo.