SDL_Sound & Visual C++ 6

Ryan C. Gordon icculus at clutteredmind.org
Tue Sep 25 16:06:14 EDT 2001


> c:\travail\sdltest\sdl_sound.c(187) : warning C4090: 'function' :
> different
> 'const' qualifiers
> c:\travail\sdltest\sdl_sound.c(187) : warning C4022: 'free' : pointer
> mismatch for actual parameter 1

(Should be fixed in CVS now.)

> playsound.c
> c:\travail\sdltest\playsound.c(100) : warning C4018: '<' :
> signed/unsigned
> mismatch
> c:\travail\sdltest\playsound.c(105) : warning C4018: '<' :
> signed/unsigned
> mismatch
> c:\travail\sdltest\playsound.c(110) : warning C4018: '>' :
> signed/unsigned
> mismatch
> c:\travail\sdltest\playsound.c(134) : warning C4018: '<=' :
> signed/unsigned
> mismatch
> c:\travail\sdltest\playsound.c(136) : warning C4018: '<' :
> signed/unsigned
> mismatch

Ahh...my favourite thing about Visual C. Let me fix those...

> skeleton.c

Don't compile this; it's just an example source fragment.

> Linking...
>    Creating library Debug/sdltest.lib and object Debug/sdltest.exp
> extra_rwops.obj : error LNK2001: unresolved external symbol _SDL_Error
> Debug/sdltest.exe : fatal error LNK1120: 1 unresolved externals

Hhmm...maybe SDL_Error() isn't meant to be exported. I'll take a look.

I'm amazed went that well, honestly.

--ryan.





More information about the sdlsound mailing list