Hi, everyone! While compiling the perl Pango module via "cpan -if Pango", it got the following linking error message: [ LD blib\arch\auto\Pango\Pango.dll ] xs/PangoCairo.o:PangoCairo.c:(.text+0x5b7): undefined reference to `cairo_reference' xs/PangoCairo.o:PangoCairo.c:(.text+0x9a5): undefined reference to `cairo_font_options_copy' xs/PangoCairo.o:PangoCairo.c:(.text+0x1722): undefined reference to `cairo_scaled_font_reference' collect2: ld returned 1 exit status These functions are from cairo, so I modified pangocairo.pc: Libs: -L${libdir} -lpangocairo-1.0 -lcairo and compiled again, but the error still occur. The pkg-config seems working well: >pkg-config --libs pangocairo -LD:/Gtk-2.0/lib -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl Thanks!!! |