Re: [Plib-users] error with gcc after including fnt header
Brought to you by:
sjbaker
From: <p.l...@ci...> - 2011-01-29 14:48:19
|
Victor , Scrive Victor henri <na...@ho...>: > > Hello > > I would like to use plib fnt to use some text, in a 3D spectral analysis of > the sound that works fine already (openGL in a SDL window). > > The problem is : when I add the include file #include <plib/fnt.h>,i get a > huge error message that i've attached in a file (it is so big that I don't > even have the beginning in my terminal). > > I'm > on ubuntu Maverick 10.10 64 bits; plib hab been installed from the > official packages (i've installed the libplib-dev package also); > > I compile my program with that command : > > gcc > -o Spectrum `pkg-config gstreamer-0.10 --cflags --libs` `pkg-config > gtk+-2.0 --cflags --libs` `sdl-config --cflags --libs` -lGLU -lGL -lglut > -lplibfnt -lplibsg -lglut -L/usr/X11/lib -lX11 -lXext -lXmu -lm > `pkg-config jack --cflags --libs` myProgram.c > > Before I add > the fnt header,the compilation is succesfull with this command; it's > only after adding the fnt.h that problems arrive; i understand that it > is not necessary to include the sg header for it is called by the fnt > (anyway i've trid that also). > > Could please anyone give me a clue? I'm not a Linux user but I remember that gcc libraries should be specified in dependency order. In the specific, plib fnt depends on OpenGL so specify GL (and GLU as well, even if not strictly necessary) *after* fnt. Before that, I'm not sure from your command line that the plib include directory is in the include path. Still on gcc, as far as plib is in /usr/include, or whatever in the default include directories, fnt.h is found, otherwise it will not. To be sure yust specify it explicitly, i.e. -I/<plib-root-path>. > Thank you > > Victor Greetings, Paolo Leoncini |