[SDL] what is wrong with this program?

Salvatore Di Fazio salvatore.difazio at gmail.com
Sat Aug 5 13:16:57 PDT 2006


The linker doesn't found the SDL libraries


Alexander Claffey ha scritto:
> I cannot find any syntax problems with this file, but it does not compile.
> I have the SDL libraries, and I have compiled other programs that use SDL. 
> The errors are: 
> 
> In function `main':blitting-surfaces-sdl.c:(.text+0x19): undefined
> reference to `SDL_Init'
> :blitting-surfaces-sdl.c:(.text+0x22): undefined reference to `SDL_GetError'
> :blitting-surfaces-sdl.c:(.text+0x45): undefined reference to `SDL_Quit'
> :blitting-surfaces-sdl.c:(.text+0x6e): undefined reference to
> `SDL_SetVideoMode':blitting-surfaces-sdl.c:(.text+0x7c): undefined
> reference to `SDL_GetError'
> :blitting-surfaces-sdl.c:(.text+0xac): undefined reference to
> `SDL_RWFromFile'
> :blitting-surfaces-sdl.c:(.text+0xbc): undefined reference to
> `SDL_LoadBMP_RW'
> :blitting-surfaces-sdl.c:(.text+0x149): undefined reference to
> `SDL_UpperBlit'
> :blitting-surfaces-sdl.c:(.text+0x174): undefined reference to
> `SDL_UpdateRect'
> :blitting-surfaces-sdl.c:(.text+0x180): undefined reference to `SDL_Delay'
> :blitting-surfaces-sdl.c:(.text+0x18b): undefined reference to
> `SDL_FreeSurface'collect2: ld returned 1 exit status






More information about the SDL mailing list