I use the orders such as: gcc eball.c -o eball -static -L/usr/lib -L/usr/X11R6/lib -lSDL -lSDL_ttf -lX11 -lXext -lfreetype -ldl -lm -lpthread -I/usr/include/SDL
或者
gcc eball.c -o eball -static `sdl-config --libs --cflags` -lSDL_ttf -L/usr/X11R6/lib -lX11 -lXext -lfreetype -ldl -lm
This is the result!
what 't wrong?
I feel a little sad!
/usr/lib/libfreetype.a(ftgzip.o)(.text+0x242): In function `ft_gzip_file_init':
: undefined reference to `inflateInit2_'
/usr/lib/libfreetype.a(ftgzip.o)(.text+0x286): In function `ft_gzip_file_done':
: undefined reference to `inflateEnd'
/usr/lib/libfreetype.a(ftgzip.o)(.text+0x31f): In function `ft_gzip_file_reset':
: undefined reference to `inflateReset'
/usr/lib/libfreetype.a(ftgzip.o)(.text+0x44f): In function `ft_gzip_file_fill_output':
: undefined reference to `inflate'
collect2: ld returned 1 exit status