SDL_ttf problem compiling code (undefined reference to `SDL_RWFromFile')

Ask/talk about LibXenon Development/Compiling
Post Reply
Mac1512

SDL_ttf problem compiling code (undefined reference to `SDL_RWFromFile')

Post by Mac1512 » Fri Feb 01, 2013 2:27 am

Hello, I turn to you, because I have a problem compiling code using SDL_ttf.

The problem is as follows:

Code: Select all

linking ... Letras.elf
/usr/local/xenon/usr/lib/libSDL_ttf.a(SDL_ttf.o): In function `TTF_OpenFontIndex':
SDL_ttf.c:(.text.TTF_OpenFontIndex+0x2c): undefined reference to `SDL_RWFromFile'
collect2: ld returned 1 exit status
make[1]: *** [/home/mac1512/Letras.elf] Error 1
make: *** [build] Error 2
I would be grateful if I lend a hand with the problem.

P.D sorry for my English using google translator

Best Regards

Ced2911
Team
Team
Posts: 74
Joined: Tue Mar 15, 2011 2:20 pm

Re: SDL_ttf problem compiling code (undefined reference to `SDL_RWFromFile')

Post by Ced2911 » Mon Feb 04, 2013 7:40 am

try to change lib order

Mac1512

Re: SDL_ttf problem compiling code (undefined reference to `SDL_RWFromFile')

Post by Mac1512 » Tue Feb 05, 2013 7:48 pm

You're right, I changed lib order and I could successfully compile the code ....

Thank you very much !!!  :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests