From: Simon L. <s.l...@gm...> - 2007-06-26 21:52:23
|
Hi all! I have been trying to get plplot with pdf support to compile on mingw for quite some time now. The goal is to have a static lib that can plot and output it in pdf. I have used postscript output before and it works perfectly. I am getting undefined references to _imp__HPDF_methodname, see below. Am I missing some lib that should be linked in? Is there some problem with name decoration? The steps i take to get this error: 1. download and compile libharu-2.0.8 source package for mingw. (cygwin with --nocygwin) 2. configure plplot-5.7.3 using cmake-setup, set PLD_pdf to on and give the library and include directories when asked. select to compile to static lib. 3. compile plplot using mingw32-make.exe The same error as below also occurs when plrender.exe is linked. Any suggestions, hints or ideas are wery welcome! Best regards, Simon g++.exe main.o logprocessor.o -o "out.exe" -L"C:/Dev-Cpp/plplot-5.7.3/lib" -L"C:/Dev-Cpp/plplot-5.7.3/buildmingw/bindings/c++" -L"C:/Dev-Cpp/plplot- 5.7.3/buildmingw/src" -L"C:/Dev-Cpp/plplot-5.7.3/buildmingw/lib/csa" -L"C:/Dev-Cpp/libharu-2.0.8" -llibboost_regex-mgw-mt-s-1_33_1 -llibboost_filesystem-mgw-mt-s-1_33_1 -lplplotcxxd -lplplotd -lcsirocsa -lgdi32 -lcomdlg32 -lhpdf C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x24e): pdf.c: undefined reference to `_imp__HPDF_New@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x286): pdf.c: undefined reference to `_imp__HPDF_Free@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x2c8): pdf.c: undefined reference to `_imp__HPDF_AddPage@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x2ee): pdf.c: undefined reference to `_imp__HPDF_Page_SetSize@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x337): pdf.c: undefined reference to `_imp__HPDF_Page_Concat@28' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x3a3): pdf.c: undefined reference to `_imp__HPDF_Page_SetRGBFill@16' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x3b6): pdf.c: undefined reference to `_imp__HPDF_Page_GetWidth@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x3dc): pdf.c: undefined reference to `_imp__HPDF_Page_GetHeight@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x414): pdf.c: undefined reference to `_imp__HPDF_Page_MoveTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x437): pdf.c: undefined reference to `_imp__HPDF_Page_LineTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x458): pdf.c: undefined reference to `_imp__HPDF_Page_LineTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x47b): pdf.c: undefined reference to `_imp__HPDF_Page_LineTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x48e): pdf.c: undefined reference to `_imp__HPDF_Page_Fill@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x4e2): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineWidth@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x4fd): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineCap@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x561): pdf.c: undefined reference to `_imp__HPDF_Page_SetRGBStroke@16' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x57c): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineJoin@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x59d): pdf.c: undefined reference to `_imp__HPDF_Page_MoveTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x5be): pdf.c: undefined reference to `_imp__HPDF_Page_LineTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x5d1): pdf.c: undefined reference to `_imp__HPDF_Page_Stroke@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x636): pdf.c: undefined reference to `_imp__HPDF_SaveToStream@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x648): pdf.c: undefined reference to `_imp__HPDF_GetStreamSize@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x676): pdf.c: undefined reference to `_imp__HPDF_ResetStream@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x6a6): pdf.c: undefined reference to `_imp__HPDF_ReadFromStream@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x714): pdf.c: undefined reference to `_imp__HPDF_Free@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x7a0): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineWidth@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x7bb): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineCap@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x7d6): pdf.c: undefined reference to `_imp__HPDF_Page_SetLineJoin@8' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x83a): pdf.c: undefined reference to `_imp__HPDF_Page_SetRGBStroke@16' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x89e): pdf.c: undefined reference to `_imp__HPDF_Page_SetRGBFill@16' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x8c3): pdf.c: undefined reference to `_imp__HPDF_Page_MoveTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x905): pdf.c: undefined reference to `_imp__HPDF_Page_LineTo@12' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x926): pdf.c: undefined reference to `_imp__HPDF_Page_FillStroke@4' C:/Dev-Cpp/plplot-5.7.3/buildmingw/src/libplplotd.a(pdf.obj)(.text+0x93b): pdf.c: undefined reference to `_imp__HPDF_Page_Stroke@4' collect2: ld returned 1 exit status mingw32-make: *** [out.exe] Error 1 Execution terminated |