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/포함/libxml2를 -I는/usr/include/osmpbf -O0 -g3 -Wall -c -fmessage-length = 0 -lpng
내가 뭘 잘못하고 있니?
업데이트 : 난`시도 링크 : 는 -I에/usr/포함/libxml2를 -I는/usr/포함/osmpbf -O0 -g3 -Wall -c -fmessage 길이 = 0 -L는/usr/포함/libpng -lpng
라이브러리 libpng가 이미 설치되어 있습니다. 변경 사항이 없습니다. 정의되지 않은 참조 topng_read_info
수정 됨. 내 큰 실수 야. 링커 설정 대신 Eclipse에서 컴파일러 설정을 지정합니다. 모두에게 감사의 답변
을 포함 그리워 있는지 확인 라이브러리 경로를 설정 libpng? –