How can you compile without libSDL_main.a? (lgpl)

Hello, I’m confused, and so I seek the wisdom of the SDL sages :slight_smile:

I know that I don’t have to make the .o or source code available with my project
if I dynamically link SDL. However, I can’t seem to get around having to link
libsdl_main.a when I compile. (I’m in C++.) If I link libsdl_main.a to make my
project and then distribute without any .o or source files, am I in violation of
the LGPL?

Thank you =:)

Scott K wrote:

Hello, I’m confused, and so I seek the wisdom of the SDL sages :slight_smile:

I know that I don’t have to make the .o or source code available with my project
if I dynamically link SDL. However, I can’t seem to get around having to link
libsdl_main.a when I compile. (I’m in C++.) If I link libsdl_main.a to make my
project and then distribute without any .o or source files, am I in violation of
the LGPL?

Thank you =:)

 SDL_main.c, placed in the public domain by Sam Lantinga  4/13/98

Hey Sam,

would you add the sdl_main thing to the FAQ page?
-> http://www.libsdl.org/faq.php?action=listentries&category=8