How to compile SDL_ttf library!

Hi guys,
after installing these:
freetype-2.4.9.tar.gzhttp://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz
SDL_ttf-2.0.11.tar.gzhttp://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz

I want to use it with SDL-1.2.15 but when i want to compile with gcc on
ubuntu get the following error:

gcc $(pkg-config sdl --cflags) -o ttf_test ttf_test.c $(pkg-config sdl
–libs) -lSDL_ttf
ttf_test.c:3:21: fatal error: SDL_TTF.h: No such file or directory
compilation terminated

what should i do?
thanks.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: ttf_test.c
Type: text/x-csrc
Size: 1301 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20120502/cd54b29f/attachment.c

Hello !

I want to use it with SDL-1.2.15 but when i want to compile with gcc on
ubuntu get the following error:

gcc $(pkg-config sdl --cflags) -o ttf_test ttf_test.c $(pkg-config sdl
–libs) -lSDL_ttf
ttf_test.c:3:21: fatal error: SDL_TTF.h: No such file or directory
compilation terminated

what should i do?

Linux and C/C++ is case sensitive, so you must use #include “SDL_ttf.h”,
not #include “SDL_TTF.h”

CU

what a silly mistake! thanks :)On Wed, May 2, 2012 at 11:59 AM, Torsten Giebl wrote:

Hello !

I want to use it with SDL-1.2.15 but when i want to compile with gcc on
ubuntu get the following error:

gcc $(pkg-config sdl --cflags) -o ttf_test ttf_test.c $(pkg-config sdl
–libs) -lSDL_ttf
ttf_test.c:3:21: fatal error: SDL_TTF.h: No such file or directory
compilation terminated

what should i do?

Linux and C/C++ is case sensitive, so you must use #include “SDL_ttf.h”,
not #include “SDL_TTF.h”

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org