Advertisement

Linker confusion

Started by July 24, 2006 09:36 PM
1 comment, last by Bregma 18 years, 6 months ago
No matter how many arguments I pass to the g++ compiler I just cant seem to make Freetype2 get linked. g++ -Wall -O3 `sdl-config --cflags` -c glBuilder.cpp; g++ -o glBuilder glBuilder.o -lSGE -freetype `sdl-config --libs` -lstdc++ Still get the same ol' 'undefined reference to blabla' error when compiling. Lets image for a while that I am right and thats the sweetest piece of compiling arguments that you could wish for, maybe theres something deeper? Using SDL and SGE to graw graphics and texts to the screen (with Freetype 2.1.0) I get the happy lil' error message from my compiler: glBuilder.cpp:(.text+0x1088): undefined reference to `sge_TTF_CloseFont' Sounds to me the issue is between SGE and Freetype. Being new to Linux I dont know what I can do really... Using Suse 10.1 if thats of any revelance...
Quote:
Original post by MickeMan
Sounds to me the issue is between SGE and Freetype. Being new to Linux I dont know what I can do really...


Sounds to me like you're missing the SDL TTF development libraries from you system. They're usually a separate package. They may or may not be picked up by the sdl-config tool.

Stephen M. Webb
Professional Free Software Developer

This topic is closed to new replies.

Advertisement