Undefined reference to drawString et al

I compile SDL tutorials with g++ lesson4.cpp -lSDL
-lSDLmail on Linux and I get undefined reference
errors for

drawString
stringWidth
freeFont
initFont

are these in some SDL library I didn’t link? The
tutorial code doesn’t define them.

The tutorials giving the problem are lessons 4 and 5
at
http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index

Thanks,
GB__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com

Oops, I forgot to link to font.o file which did have
the functions defined.

— G B <@G_B> wrote:

I compile SDL tutorials with g++ lesson4.cpp -lSDL
-lSDLmail on Linux and I get undefined reference
errors for

drawString
stringWidth
freeFont
initFont

are these in some SDL library I didn’t link? The
tutorial code doesn’t define them.

The tutorials giving the problem are lessons 4 and 5
at

http://cone3d.gamedev.net/cgi-bin/index.pl?page=tutorials/gfxsdl/index>

Thanks,
GB


Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com