undefined reference to `gnome_font_get_glyph_kerning'
- From: "Marco Scholten" <mscholtn xs4all nl>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: undefined reference to `gnome_font_get_glyph_kerning'
- Date: Sat, 13 Nov 2004 16:07:07 +0100
hello,
I am trying to use libgnomeprintmm and get a build error with this code:
double Kerning; double CharWidth;
CharWidth = gnome_font_get_glyph_width(refCurrentFont->gobj(),
41); //this line compiles ok
Kerning = gnome_font_get_glyph_kerning(refCurrentFont->gobj(), 41
,42); /this line generates a build error
I would expect either both to work or none of them to work, because they
are in the same header file.
When i comment out the last line everything works fine.
from gnomeprint documentation:
gdouble gnome_font_get_glyph_width (GnomeFont *font,
gint glyph);
gdouble gnome_font_get_glyph_kerning (GnomeFont *font,
gint glyph1,
gint glyph2);
i have lingnomeprint 2.2 installed from debian unstable apt and libgnomemm
2.5.1
can anybody tell me what i'm doing wrong?
build messages below:
Building source directory of the Project: Optimize ...
make -k
make[1]: Entering directory `/home/locutus/Projects/Optimize'
make[1]: Leaving directory `/home/locutus/Projects/Optimize'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DXTHREADS -I/usr/include/gtkmm-2.4
-I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4
-I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4
-I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include
-I/usr/X11R6/include -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/include/atk-1.0 -I/usr/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/libxml2
-I/usr/local/include/libgnomeprintmm-2.6 -I/usr/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -Wall -g -MT PrinterGnome.o -MD -MP -MF
".deps/PrinterGnome.Tpo" -c -o PrinterGnome.o PrinterGnome.cc; \
then mv -f ".deps/PrinterGnome.Tpo" ".deps/PrinterGnome.Po"; else rm -f
".deps/PrinterGnome.Tpo"; exit 1; fi
/bin/sh ../libtool --mode=link g++ -Wall -g -o optimize main.o
EditPieceWindow.o PieceEditList.o Piece.o PieceList.o Profile.o
marco_utils.o Wizard.o OptimDialogs.o OptimProject.o exceptions.o
welcomewindow.o opt_gui.o PrinterBase.o PrinterGnome.o
/usr/local/lib/libgnomeprintmm-2.5.la -Wl,--export-dynamic -lgtkmm-2.4
-lgdkmm-2.4 -latkmm-1.6 -lgtk-x11-2.0 -lpangomm-1.4 -lglibmm-2.4
-lsigc-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0
-lgnomeprint-2-2 -lart_lgpl_2 -lxml2 -lpthread -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
g++ -Wall -g -o optimize main.o EditPieceWindow.o PieceEditList.o Piece.o
PieceList.o Profile.o marco_utils.o Wizard.o OptimDialogs.o OptimProject.o
exceptions.o welcomewindow.o opt_gui.o PrinterBase.o PrinterGnome.o
-Wl,--export-dynamic /usr/local/lib/libgnomeprintmm-2.5.so
/usr/lib/libgtkmm-2.4.so /usr/lib/libgdkmm-2.4.so /usr/lib/libatkmm-1.6.so
/usr/lib/libgtk-x11-2.0.so /usr/lib/libpangomm-1.4.so
/usr/lib/libglibmm-2.4.so /usr/lib/libsigc-2.0.so
/usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so
/usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangoxft-1.0.so
/usr/lib/libgnomeprint-2-2.so /usr/lib/libart_lgpl_2.so
/usr/lib/libxml2.so -lpthread /usr/lib/libpangox-1.0.so
/usr/lib/libpango-1.0.so /usr/lib/libgobject-2.0.so
/usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -Wl,--rpath
-Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib
PrinterGnome.o(.text+0xf83): In function
`Printer::get_textwidth(Glib::ustring)':
/home/locutus/Projects/Optimize/src/PrinterGnome.cc:79: undefined
reference to `gnome_font_get_glyph_kerning'
PrinterGnome.o(.text+0x1321): In function
`Printer::SeparateLines(Glib::ustring, std::vector<Glib::ustring,
std::allocator<Glib::ustring> >)':
/home/locutus/Projects/Optimize/src/PrinterGnome.cc:118: undefined
reference to `gnome_font_get_glyph_kerning'
collect2: ld returned 1 exit status
make: *** [optimize] Error 1
make: Target `all' not remade because of errors.
Completed ... unsuccessful
Total time taken: 9 secs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]