Has anyone ever used PLPLOT. I'm trying to compile one of the examples (which build successfully during the plplot build process) but I want to build the example individually. It's proving very challenging.
A million linker errors and no clue on their website as to what is going wrong.
I've listed the linker paths I've included below. I've even tried just using the library file libplplotcxxd.a on its own but still the same error. Yes, the include paths have been set as well., Pretty easy to get right.
I had a similare problem with another open source package some time ago and it turned out to be due to a pre-processor macro at the top of the source file wasn't there. I don't seem to be able to solve this the same way.
I'll list the errors for what it's worth.. Below my linker settings.''
Linker Paths and files
C:\plplot\lib\csa\libcsirocsa.a
C:\plplot\lib\qsastime\libqsastime.a
C:\plplot\bindings\c++\libplplotcxxd.a
C:\plplot\src\libplplotd.a
Build started on: 15-12-2012 at 21:04.37
Build ended on: 15-12-2012 at 21:04.40
-------------- Build: Debug in plplot1 ---------------
mingw32-g++.exe -LC:\plplot\lib -LC:\plplot\lib -LC:\CodeBlocks\sqlite_ -LC:\podofo-0.9.1\podofo-debug\src\CMakeFiles\podofo_static.dir\doc -LC:\podofo-0.9.1\podofo-debug\src\CMakeFiles\podofo_static.dir\base -o bin\Debug\plplot1.exe obj\Debug\plplot\examples\c++\x03.o C:\plplot\src\libplplotd.a C:\plplot\bindings\c++\libplplotcxxd.a C:\plplot\lib\qsastime\libqsastime.a C:\plplot\lib\csa\libcsirocsa.a C:\plplot\src\libplplotd.a C:\plplot\bindings\c++\libplplotcxxd.a C:\plplot\lib\qsastime\libqsastime.a C:\plplot\lib\csa\libcsirocsa.a
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x30c): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x363): undefined reference to `ExtTextOutA@32'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x381): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x3f4): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x480): undefined reference to `BitBlt@36'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x4a1): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x6c9): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x720): undefined reference to `ExtTextOutA@32'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x73e): undefined reference to `SetBkColor@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd54): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd72): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xdbd): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xddb): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1010): undefined reference to `SetPolyFillMode@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x102e): undefined reference to `SetPolyFillMode@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x112b): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x116b): undefined reference to `Polyline@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1199): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x11ba): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12c0): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12eb): undefined reference to `Polyline@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x130c): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1449): undefined reference to `CreateSolidBrush@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1473): undefined reference to `CreatePen@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1497): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14bb): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14e6): undefined reference to `Polygon@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1507): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x151b): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1536): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1544): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1588): undefined reference to `DeleteDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15a9): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15bd): undefined reference to `CreateCompatibleDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1612): undefined reference to `CreateCompatibleBitmap@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x163c): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16a8): undefined reference to `BitBlt@36'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16c9): undefined reference to `SelectObject@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1c69): undefined reference to `DeleteDC@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1cb5): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1d82): undefined reference to `DeleteObject@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1da8): undefined reference to `CreatePen@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e08): undefined reference to `SetROP2@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e26): undefined reference to `SetROP2@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x21e0): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2234): undefined reference to `SetPixelV@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2285): undefined reference to `SetPixel@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x22d6): undefined reference to `SetPixelV@16'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x231f): undefined reference to `GetPixel@12'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2366): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x23a7): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2571): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2593): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x265b): undefined reference to `GetDeviceCaps@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2696): more undefined references to `GetDeviceCaps@8' follow
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2871): undefined reference to `PrintDlgA@4'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2992): undefined reference to `StartDocA@8'
C:\plplot\src\libplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x29b1): undefined reference to `EndDoc@4'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15d): undefined reference to `FT_Get_Kerning'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x18f): undefined reference to `FT_Load_Char'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x24b): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x323): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x375): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x3ec): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x452): undefined reference to `FT_Get_Kerning'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x499): undefined reference to `FT_Load_Char'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0xe90): undefined reference to `FT_Init_FreeType'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x12cd): undefined reference to `FT_Done_Face'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1314): undefined reference to `FT_New_Face'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x13a9): undefined reference to `FT_Set_Char_Size'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x158f): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15ba): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17a0): undefined reference to `FT_Matrix_Multiply'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17bd): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17e8): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1bc5): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1c89): undefined reference to `FT_Done_Library'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x2058): undefined reference to `FT_Vector_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x20b8): undefined reference to `FT_Set_Transform'
C:\plplot\src\libplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x20ed): undefined reference to `FT_Load_Char'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
50 errors, 0 warnings