Res: mixer

----- Mensagem original -----

Hi!

On Fri Aug 16, 2002 at 11:48:53AM -0300, the boisterous
Ricardo Ferrari (SPO-LAB) <@Ricardo_Ferrari>
wrote to me:

i use dev-cpp

I don’t know it.

i put the heades files( SDL_mixer.h and SDL_image.h ) into the SDL
c:\devcpp\include\sdl
but when i compile it i got the follow error :

c:\temp\main.o: In function SDL_main': //c/temp/main.c:65: undefined reference toMix_SetMusicCMD’
//c/temp/main.c:67: undefined reference to Mix_FadeInMusic' //c/temp/main.c:73: undefined reference toMix_FreeMusic’
c:\temp\resources.o: In function LoadData': //c/temp/resources.c:43: undefined reference toIMG_Load’
//c/temp/resources.c:59: undefined reference to IMG_Load' //c/temp/resources.c:74: undefined reference toIMG_Load’
//c/temp/resources.c:89: undefined reference to IMG_Load' //c/temp/resources.c:105: undefined reference toIMG_Load’
c:\temp\resources.o://c/temp/resources.c:121: more undefined references
to
IMG_Load' follow c:\temp\resources.o: In functionLoadData’:
//c/temp/resources.c:226: undefined reference to Mix_LoadMUS' //c/temp/resources.c:232: undefined reference toMix_LoadWAV_RW’
//c/temp/resources.c:237: undefined reference to Mix_LoadWAV_RW' c:\temp\game.o: In functioninit_game’:
//c/temp/game.c:52: undefined reference to Mix_OpenAudio' //c/temp/game.c:56: undefined reference toMix_QuerySpec’
c:\temp\game.o: In function update_ball': //c/temp/game.c:294: undefined reference toMix_PlayChannelTimed’
//c/temp/game.c:296: undefined reference to Mix_PlayChannelTimed' //c/temp/game.c:300: undefined reference toMix_PlayChannelTimed’
//c/temp/game.c:304: undefined reference to `Mix_PlayChannelTimed’

This indicates that you don’t link with SDL_mixer and SDL_image. Try to
add the libs to your linker.

so long
Thomas


___ Obviously we do not want to leave zombies around.
/\ - W. Richard Stevens
( ^ >
/ \ Thomas Krennwallner
(
/) 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl> De: Thomas Krennwallner [SMTP:krennwallner at aon.at]
Enviada em: sexta-feira, 16 de agosto de 2002 12:58
Para: sdl at libsdl.org
Assunto: Re: [SDL] MIXER

On Fri Aug 16, 2002 at 02:08:18PM -0300, the boisterous
Ricardo Ferrari (SPO-LAB)
wrote to me:

hi, can u tell me the name of the libs that i must link???

SDL_image and SDL_mixer–
___ Obviously we do not want to leave zombies around.
/\ - W. Richard Stevens
( ^ >
/ \ Thomas Krennwallner
(
/) 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B

ok, go to project -> project options (ALT + P)

then add to linker option field:

-lSDL_image -lSDL_mixer

And don’t forget to add the right header files in your .c file.

Lion Vollnhals______________________________________________________________________________
Jetzt testen f?r 1 Euro! Ihr All-in-one-Paket!
https://digitaledienste.web.de/Club/formular/?mc=021106