CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1

    libharu, how to compile (undefined reference to)

    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((
    Last edited by Igor Yalovecky; December 2nd, 2011 at 05:20 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured