PDA

View Full Version : SDL problem with SDL_image.h



airseb
03-04-2005, 11:04 AM
Hi,
i downloaded it and i put all the .dll in windows/system32/, the .h in the include directory, and the .lib in lib directory.

I write #include "SDL_image.h" in my program and i have two errors with visual C++ 6 :

error C2556: 'void __cdecl SDL_main(int,char ** )' : overloaded function differs only by return type from 'int __cdecl SDL_main(int,char *[])'
d:\vc98\include\sdl_main.h(56) : see declaration of 'SDL_main'

error C2371: 'SDL_main' : redefinition; different basic types
d:\vc98\include\sdl_main.h(56) : see declaration of 'SDL_main'

i'm using glut for the window.

Can you help me ?

MMMovania
03-05-2005, 01:34 AM
Originally posted by airseb:
Hi,
i downloaded it and i put all the .dll in windows/system32/, the .h in the include directory, and the .lib in lib directory.

I write #include "SDL_image.h" in my program and i have two errors with visual C++ 6 :

error C2556: 'void __cdecl SDL_main(int,char ** )' : overloaded function differs only by return type from 'int __cdecl SDL_main(int,char *[])'
d:\vc98\include\sdl_main.h(56) : see declaration of 'SDL_main'

error C2371: 'SDL_main' : redefinition; different basic types
d:\vc98\include\sdl_main.h(56) : see declaration of 'SDL_main'

i'm using glut for the window.

Can you help me ?Hello there,
CHeck these links out.
http://sol.planet-d.net/gp/ch01_vc6.html
http://www.libsdl.org/tutorials.php
Hope this helps. Thanx

airseb
03-05-2005, 05:23 AM
ok thanks i 'll watch it