Mixer

hi, can someone help me whith the SDL_image and the SDL_mixer

i use dev-cpp
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’

I don’t know what to do
tks
see ya

Hello RicardoOn 16-Aug-02, Ricardo Ferrari (SPO-LAB) wrote:
R(> hi, can someone help me whith the SDL_image and the SDL_mixer

No, unless you turn HTML-mail option off :slight_smile:

Regards

  • Miksu -

Mika Hanhij?rvi
mikaph at evitek.fi
IRC: miksuh ( IRCNet: #AmigaFIN )
Team AMIGA

Hi!

On Fri Aug 16, 2002 at 11:48:53AM -0300, the boisterous
Ricardo Ferrari (SPO-LAB)
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

Ricardo Ferrari (SPO-LAB)
wrote to me:

i use dev-cpp

I don’t know it.

Dev-CPP is a IDE for Windows, that uses the mingw32 compiler. (In essence,
it’s a gcc2.95 compiler for win32)

HTH, KaiOn Friday 16 August 2002 17:58, Thomas Krennwallner wrote:


Kai Blin Linux system administrator Tel: Ring-86592
Allgemeine Chirurgie Universitaetsklinikum Tuebingen

It may be bad manners to talk with your mouth full, but it isn’t too
good either if you speak when your head is empty.