Sdl_gfx HELP!

Hi! My problem is that i can’t figure out how to use sdl_gfx, i think i have to build a dll with a makefile, but i can’t, (i use dev c++) can you help me?

Hmm. SDL_gfx’s a pretty tight library, only 4 source files and afew .h
files; small enough that you could just add the source files to the
project and link it statically if you can’t figure out how to build an
external library. It’s under the LGPL, which I think means you can link
statically as long as you a) don’t modify the source, and b) credit them
for it. (someone correct me on this if I’m wrong?)

Luca Cesare wrote:> Hi! My problem is that i can’t figure out how to use sdl_gfx, i think

i have to build a dll with a makefile, but i can’t, (i use dev c++)
can you help me?

LGPL requires that an end user be able to re-link your code against any
version of the LGPLed library… so you need to provide a dynamically
linked version, or you provide .o files if that’s easier for you, or
some other way to use your program with the “latest and greatest” custom
version of the LGPLed library… (If you want the details, read the LGPL
itself, but that’s the gist of it.)

For the record: IANAL

Best wishes,

-LorenOn Sun, 2002-11-24 at 12:21, Corona688 wrote:

Hmm. SDL_gfx’s a pretty tight library, only 4 source files and afew .h
files; small enough that you could just add the source files to the
project and link it statically if you can’t figure out how to build an
external library. It’s under the LGPL, which I think means you can link
statically as long as you a) don’t modify the source, and b) credit them
for it. (someone correct me on this if I’m wrong?)

Ahh, thank you very much for the clarification. :slight_smile:

Some of my as-yet-unreleased code has a peculiar condition, though; it
overloads the SDL video, mouse, and messaging functions with #define’s, thus
modifying SDL’s behavior in a manner totally transparent to the programmer. I
simply cannot externally link to SDL_gfx and have it use my overloaded
functions. How would the LGPL apply in this case? Or would I have to cram
all my SDL-overload code into SDL itself? (And with it licensed under the
GPL, that’s an even bigger problem. >.> )

Loren Osborn wrote:> LGPL requires that an end user be able to re-link your code against any

version of the LGPLed library… so you need to provide a dynamically
linked version, or you provide .o files if that’s easier for you, or
some other way to use your program with the “latest and greatest” custom
version of the LGPLed library… (If you want the details, read the LGPL
itself, but that’s the gist of it.)

For the record: IANAL

Best wishes,

-Loren


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl