SDL_ttf einbinden
Verfasst: Do Mär 08, 2012 8:52 am
Hallo!
Ich habe versucht SDL_ttf auszuprobieren. Nun habe ich erst mal nur die Datei eingebunden:
Trotzdem erhalte ich Fehlermeldungen:
An meinem Code kann es nicht liegen, der besteht nur aus einer leeren main-Funktion. Vermutlich habe ich vergessen irgendeine Datei dazu zu linken. Um welche handelt es sich dabei?
Ich habe versucht SDL_ttf auszuprobieren. Nun habe ich erst mal nur die Datei eingebunden:
Code: Alles auswählen
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
Code: Alles auswählen
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `Find_Glyph':|
(.text+0x2a5)||undefined reference to `FT_Load_Glyph'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `Find_Glyph':|
(.text+0x3e8)||undefined reference to `FT_Render_Glyph'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `Find_Glyph':|
(.text+0x5b9)||undefined reference to `FT_Get_Char_Index'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `Find_Glyph':|
(.text+0x5d7)||undefined reference to `FT_Render_Glyph'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `Find_Glyph':|
(.text+0x962)||undefined reference to `FT_Outline_Transform'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_Init':|
(.text+0xb38)||undefined reference to `FT_Init_FreeType'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_CloseFont':|
(.text+0xb7f)||undefined reference to `FT_Done_Face'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_OpenFontIndexRW':|
(.text+0xd07)||undefined reference to `FT_Open_Face'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_OpenFontIndexRW':|
(.text+0xd55)||undefined reference to `FT_Set_Pixel_Sizes'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_OpenFontIndexRW':|
(.text+0xe26)||undefined reference to `FT_Set_Char_Size'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_SizeUNICODE':|
(.text+0x1353)||undefined reference to `FT_Get_Kerning'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_RenderUNICODE_Solid':|
(.text+0x1825)||undefined reference to `FT_Get_Kerning'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_RenderUNICODE_Shaded':|
(.text+0x1ed5)||undefined reference to `FT_Get_Kerning'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_RenderUNICODE_Blended':|
(.text+0x257d)||undefined reference to `FT_Get_Kerning'|
/usr/lib/libSDL_ttf.a(SDL_ttf.o)||In function `TTF_Quit':|
(.text+0x28e9)||undefined reference to `FT_Done_FreeType'|
||=== Build finished: 15 errors, 0 warnings ===|