salut tout le monde
voila mon code:
- include <sdl/sdl.h>
SDL_AudioSpec wav_spec;
Uint32 wav_length;
Uint8 *wav_buffer;
/* Load the WAV */
double main(){
if( SDL_LoadWAV("test.wav", &wav_spec, &wav_buffer, &wav_length) == NULL ){
fprintf(stderr, "Could not open test.wav: %s\n", SDL_GetError());
exit(-1);
}
SDL_FreeWAV(wav_buffer);
}
voila mon probleme:
/*
C:\Dev-Cpp\lib\libSDLmain.a(SDL_main.o.b)
[Warning] In function `console_main´:
------------------------------------------------
[Linker error] undefined reference to `SDL_main´
------------------------------------------------
C:\Documents and Settings\zouhair\Bureau\Makefile.win
[Build Error] [loo.exe] Error 1
merci avance de votre aide;