SDL_gfx for Dev-C++?

Hey,

Having had a look at SDL_gfx, it looks perfect for a few elements of my
project, but I am having a little problem.

I create a new DLL project in Dev-C++, and add that the .c & .h files, and
go to compile the project, but I get a few errors:

Line 3012 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_gfxPrimitives.c
[Warning] In function int filledpieColor(SDL_Surface *, short int, short int, short int, short int, short int, unsigned int)': assignment toSint16
*’ from `Uint16 *’ changes signedness

Line 346 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_rotozoom.c
[Warning] In function void transformSurfaceRGBA(SDL_Surface *, SDL_Surface *, int, int, int, int, int)': ANSI C++ forbids implicit conversion fromvoid *’ in assignment

Line 500 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_rotozoom.c
[Warning] In function void transformSurfaceY(SDL_Surface *, SDL_Surface *, int, int, int, int)': ANSI C++ forbids implicit conversion fromvoid *’ in
assignment

Has anyone come over the problem before, and if so how did you solve it?
Other than that, is there a pre-compiled Win32 version of the SDL_gfx
library? If so, it would be a great help to me. Also, do I need to compile
a static lib as well, to use as a linker file, or once compiled can I use it
right away?

Thanks
Tane
http://tane.cream.org

If you don’t like to look at the word [Warning] during your compile.
You can do some casting. I would assume that SDL_gfx works just fine,
so I don’t think these warning will really lead anywhere. However, if
you have the time you may want to look at the affected functions and see
if the casting conversions will actually lead to any problem.

RobertOn Thu, 2003-02-13 at 17:36, Tane Piper wrote:

Hey,

Having had a look at SDL_gfx, it looks perfect for a few elements of my
project, but I am having a little problem.

I create a new DLL project in Dev-C++, and add that the .c & .h files, and
go to compile the project, but I get a few errors:

Line 3012 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_gfxPrimitives.c
[Warning] In function int filledpieColor(SDL_Surface *, short int, short int, short int, short int, short int, unsigned int)': assignment toSint16
*’ from `Uint16 *’ changes signedness

Line 346 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_rotozoom.c
[Warning] In function void transformSurfaceRGBA(SDL_Surface *, SDL_Surface *, int, int, int, int, int)': ANSI C++ forbids implicit conversion fromvoid *’ in assignment

Line 500 in C:\Dev-Cpp\Tane\SDL_gfx\SDL_rotozoom.c
[Warning] In function void transformSurfaceY(SDL_Surface *, SDL_Surface *, int, int, int, int)': ANSI C++ forbids implicit conversion fromvoid *’ in
assignment

Has anyone come over the problem before, and if so how did you solve it?
Other than that, is there a pre-compiled Win32 version of the SDL_gfx
library? If so, it would be a great help to me. Also, do I need to compile
a static lib as well, to use as a linker file, or once compiled can I use it
right away?

Thanks
Tane
http://tane.cream.org


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