[SDL] Re: SDL_mixer SDL_image and SDL_ttf problems
Norman Elliott
nelliott at uklinux.net
Tue Jan 25 13:28:05 PST 2005
On Tue, 25 Jan 2005 09:23:39 -0800, TomT64 wrote:
> Re: SDL_mixer SDL_image and SDL_ttf problems
> You have to add the libraries like so:
> gcc blah blah sdl-config -lSDL_image -lSDL_ttf -lSDL_mixer
> because sdl-config only includes the base SDL library.
> -TomT64
Thanks, I tried it but this is what happened :
g++ TroutWars.cpp -o TrWars1 `/usr/bin/sdl-config --libs` -lSDL_image
-lSDL_ttf -lSDL_mixer
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x67): In function `TTF_Init': :
undefined reference to `FT_Init_FreeType'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x20b): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_Open_Face'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x23c): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_Set_Char_Size'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x274): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x293): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x2c1): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x2e1): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x301): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_MulFix'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x33c): In function
`TTF_OpenFontIndexRW': : undefined reference to `FT_Set_Pixel_Sizes'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x53e): In function `Load_Glyph': :
undefined reference to `FT_Get_Char_Index'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x55c): In function `Load_Glyph': :
undefined reference to `FT_Load_Glyph'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x7ab): In function `Load_Glyph': :
undefined reference to `FT_Outline_Transform'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x7c7): In function `Load_Glyph': :
undefined reference to `FT_Render_Glyph'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0xb3d): In function
`TTF_CloseFont': : undefined reference to `FT_Done_Face'
/usr/lib/libSDL_ttf.a(SDL_ttf.o)(.text+0x2019): In function `TTF_Quit': :
undefined reference to `FT_Done_FreeType' collect2: ld returned 1 exit
status
Hope this gives more clues,
Thanks again,
norman
More information about the SDL
mailing list