g++ /usr/local/lib/libhpdf.a /usr/local/lib/libhpdf.so pdf.cpp
gives me:
pdf.cpp.text+0xb7): undefined reference to `HPDF_New'
pdf.cpp.text+0xf9): undefined reference to `HPDF_Free'
pdf.cpp.text+0x10f): undefined reference to `HPDF_AddPage'
.....
------------------------------------------------------------------------------------------
ok, eventually i compiled it with "gcc pdf.cpp -lhpdf -lpng -lz -lm"
but now it says:
./a.out: error while loading shared libraries: libhpdf-2.2.1.so: cannot open shared object file: No such file or directory
even after i copied this file into current dir((




.text+0xb7): undefined reference to `HPDF_New'
Reply With Quote