I m trying to compile source code, but receive:
undefined reference to
png_read_info' ファイル ヘッダー: #include "PngImage.hh"
#include <png.h>
#include <cstdio>
#include <csetjmp>
#include <cstring>
私のコンパイラ設定: -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -lpng
私が間違っていることは何ですか?
更新: リンクしようとしています: -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -L/usr/include/libpng -lpng
ライブラリ libpng は既にインストールされています。再び受信した変更はありません: png_read_info への未定義の参照
修理済み。私の大きな間違い。リンカ設定ではなく、eclipse でコンパイラ設定を設定しました。回答ありがとうございます