Hi,
I'm a novice programmer ( and a linux newbie )
and i’ve just installed SDL 1.2.5 on my PC ( redhat
8.0, kernel 2.4.18-14 ). I tried compiling a sample
program on test ( testvidinfo.c ) and here’s what
gcc
( or ld ) has to say:
/tmp/ccINqHhj.o: In function RunBlitTests': /tmp/ccINqHhj.o(.text+0x137): undefined reference to
SDL_UpperBlit’
/tmp/ccINqHhj.o(.text+0x14c): undefined reference to
SDL_Flip' /tmp/ccINqHhj.o: In function
RunModeTests’:
/tmp/ccINqHhj.o(.text+0x171): undefined reference to
SDL_PollEvent' /tmp/ccINqHhj.o(.text+0x1a1): undefined reference to
SDL_GetTicks’
/tmp/ccINqHhj.o(.text+0x1eb): undefined reference to
SDL_MapRGB' /tmp/ccINqHhj.o(.text+0x1f9): undefined reference to
SDL_FillRect’
/tmp/ccINqHhj.o(.text+0x207): undefined reference to
SDL_Flip' /tmp/ccINqHhj.o(.text+0x256): undefined reference to
SDL_MapRGB’
/tmp/ccINqHhj.o(.text+0x264): undefined reference to
SDL_FillRect' /tmp/ccINqHhj.o(.text+0x272): undefined reference to
SDL_Flip’
/tmp/ccINqHhj.o(.text+0x2c1): undefined reference to
SDL_MapRGB' /tmp/ccINqHhj.o(.text+0x2cf): undefined reference to
SDL_FillRect’
/tmp/ccINqHhj.o(.text+0x2dd): undefined reference to
SDL_Flip' /tmp/ccINqHhj.o(.text+0x2f1): undefined reference to
SDL_GetTicks’
/tmp/ccINqHhj.o(.text+0x381): undefined reference to
SDL_PollEvent' /tmp/ccINqHhj.o(.text+0x3b3): undefined reference to
SDL_RWFromFile’
/tmp/ccINqHhj.o(.text+0x3bc): undefined reference to
SDL_LoadBMP_RW' /tmp/ccINqHhj.o(.text+0x3d3): undefined reference to
SDL_GetError’
/tmp/ccINqHhj.o(.text+0x439): undefined reference to
SDL_GetTicks' /tmp/ccINqHhj.o(.text+0x457): undefined reference to
SDL_GetTicks’
/tmp/ccINqHhj.o(.text+0x506): undefined reference to
SDL_DisplayFormat' /tmp/ccINqHhj.o(.text+0x517): undefined reference to
SDL_FreeSurface’
/tmp/ccINqHhj.o(.text+0x52b): undefined reference to
SDL_GetError' /tmp/ccINqHhj.o(.text+0x591): undefined reference to
SDL_GetTicks’
/tmp/ccINqHhj.o(.text+0x5af): undefined reference to
SDL_GetTicks' /tmp/ccINqHhj.o(.text+0x658): undefined reference to
SDL_FreeSurface’
/tmp/ccINqHhj.o(.text+0x667): undefined reference to
SDL_PollEvent' /tmp/ccINqHhj.o: In function
RunVideoTests’:
/tmp/ccINqHhj.o(.text+0x6a4): undefined reference to
SDL_WM_SetCaption' /tmp/ccINqHhj.o(.text+0x6b1): undefined reference to
SDL_ShowCursor’
/tmp/ccINqHhj.o(.text+0x795): undefined reference to
SDL_SetVideoMode' /tmp/ccINqHhj.o(.text+0x7ac): undefined reference to
SDL_GetError’
/tmp/ccINqHhj.o: In function main': /tmp/ccINqHhj.o(.text+0x84f): undefined reference to
SDL_Init’
/tmp/ccINqHhj.o(.text+0x861): undefined reference to
SDL_GetError' /tmp/ccINqHhj.o(.text+0x896): undefined reference to
SDL_VideoDriverName’
/tmp/ccINqHhj.o(.text+0x8b9): undefined reference to
SDL_GetVideoInfo' /tmp/ccINqHhj.o(.text+0x93c): undefined reference to
SDL_ListModes’
/tmp/ccINqHhj.o(.text+0xb50): undefined reference to
`SDL_Quit’
collect2: ld returned 1 exit status
I looked on the FAQs and howtos on libsdl.org but i
didn’t find any related literature for this kind of
situation. I was hoping now that you guys can me
help
on this “itsy-bitsy” problem i can’t manage =)
TIA
charkee__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com