[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"undefined reference" et libpng12



Salut,

J' essaye desesperemment d' utiliser une librairie de traitement d' image en C++ sous Sarge. Les 2 librairies qui ont l' air assez bien pour cela sont "QTImage" et "Devil". La compilation se passe sans aucun problème mais au linkage, j' obtiens enormement de undefined reference:


/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_get_IHDR@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_destroy_write_struct@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_write_end@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_set_compression_level@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_set_write_fn@PNG12_0'

 [etc...]

/usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_get_y_pixels_per_meter@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_set_progressive_read_fn@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_get_x_offset_pixels@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_set_strip_16@PNG12_0' /usr/lib/gcc-lib/i486-linux/3.3.5/../../../libqt-mt.so: undefined reference to `png_set_pHYs@PNG12_0'
collect2: ld a retourné 1 code d'état d'exécution


Bien sur, j' ai les packages "libqt3-mt-dev" et "libpng12-dev" installés...


Merci d' avance.



Reply to: