Im trying to compile source code, but receive:
undefined reference to
png_read_info'
File header:
#include "PngImage.hh"
#include <png.h>
#include <cstdio>
#include <csetjmp>
#include <cstring>
My compiler settings: -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -lpng
What I`m doing wrong ?
Update: I`m trying linking: -I/usr/include/libxml2 -I/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length=0 -L/usr/include/libpng -lpng
Library libpng already installed. Nothing change I receive again: undefined reference topng_read_info
Fixed. My great mistake. I set compiler settings in eclipse instead of linker settings. Thank all for answers