>From the error message below, you should link to -ljpeg.
Regards,
Dominik
On Monday, April 18, 2011 09:13:27 am [email protected] wrote:
> Hello i have just write this line and i have a compiling error:
> void Widget::provo_pag_pdf(){
> using namespace PoDoFo;
> PdfStreamedDocument document( "Pippo" );
>
> }
>
> I have this error:
> g++ -o Gsd_Volpiano main.o widget.o moc_widget.o -L/usr/lib -lpodofo -
> lQtGui -lQtCore -lpthread
> /usr/local/lib/libpodofo.a(PdfFiltersPrivate.cpp.o): In function `PoDoFo::
> PdfDCTFilter::BeginDecodeImpl(PoDoFo::PdfDictionary const*)':
> PdfFiltersPrivate.cpp:(.text+0x1eb7): undefined reference to
> `jpeg_std_error' PdfFiltersPrivate.cpp:(.text+0x1edb): undefined reference
> to
> `jpeg_CreateDecompress'
> /usr/local/lib/libpodofo.a(PdfFiltersPrivate.cpp.o): In function `PoDoFo::
> PdfDCTFilter::EndDecodeImpl()':
> PdfFiltersPrivate.cpp:(.text+0x1fef): undefined reference to
> `jpeg_read_header'
> PdfFiltersPrivate.cpp:(.text+0x2006): undefined reference to
> `jpeg_destroy_decompress'
> PdfFiltersPrivate.cpp:(.text+0x2082): undefined reference to
> `jpeg_start_decompress'
> PdfFiltersPrivate.cpp:(.text+0x2101): undefined reference to
> `jpeg_read_scanlines'
> PdfFiltersPrivate.cpp:(.text+0x233d): undefined reference to
> `jpeg_destroy_decompress'
> /usr/local/lib/libpodofo.a(PdfFiltersPrivate.cpp.o): In function `PoDoFo::
> jpeg_memory_src(jpeg_decompress_struct*, unsigned char const*, unsigned
> int)': PdfFiltersPrivate.cpp:(.text+0x2472): undefined reference to
> `jpeg_resync_to_restart'
> collect2: ld returned 1 exit status
>
> ---------------------------------------------------------------------------
> --- Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users