plplot - Multiple Linker Errors? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

plplot - Multiple Linker Errors?

tomadomtomadom Posts: 2Member
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.''

[b]Linker Paths and files
C:plplotlibcsalibcsirocsa.a
C:plplotlibqsastimelibqsastime.a
C:plplotindingsc++libplplotcxxd.a
C:plplotsrclibplplotd.a[/b]

[code]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:plplotlib -LC:plplotlib -LC:CodeBlockssqlite_ -LC:podofo-0.9.1podofo-debugsrcCMakeFilespodofo_static.dirdoc -LC:podofo-0.9.1podofo-debugsrcCMakeFilespodofo_static.dirase -o binDebugplplot1.exe objDebugplplotexamplesc++x03.o C:plplotsrclibplplotd.a C:plplotindingsc++libplplotcxxd.a C:plplotlibqsastimelibqsastime.a C:plplotlibcsalibcsirocsa.a C:plplotsrclibplplotd.a C:plplotindingsc++libplplotcxxd.a C:plplotlibqsastimelibqsastime.a C:plplotlibcsalibcsirocsa.a
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x30c): undefined reference to `SetBkColor@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x363): undefined reference to `ExtTextOutA@32'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x381): undefined reference to `SetBkColor@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x3f4): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x480): undefined reference to `BitBlt@36'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x4a1): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x6c9): undefined reference to `SetBkColor@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x720): undefined reference to `ExtTextOutA@32'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x73e): undefined reference to `SetBkColor@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd54): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xd72): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xdbd): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0xddb): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1010): undefined reference to `SetPolyFillMode@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x102e): undefined reference to `SetPolyFillMode@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x112b): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x116b): undefined reference to `Polyline@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1199): undefined reference to `SetPixel@16'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x11ba): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12c0): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x12eb): undefined reference to `Polyline@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x130c): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1449): undefined reference to `CreateSolidBrush@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1473): undefined reference to `CreatePen@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1497): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14bb): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x14e6): undefined reference to `Polygon@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1507): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x151b): undefined reference to `DeleteObject@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1536): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1544): undefined reference to `DeleteObject@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1588): undefined reference to `DeleteDC@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15a9): undefined reference to `DeleteObject@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x15bd): undefined reference to `CreateCompatibleDC@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1612): undefined reference to `CreateCompatibleBitmap@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x163c): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16a8): undefined reference to `BitBlt@36'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x16c9): undefined reference to `SelectObject@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1c69): undefined reference to `DeleteDC@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1cb5): undefined reference to `DeleteObject@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1d82): undefined reference to `DeleteObject@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1da8): undefined reference to `CreatePen@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e08): undefined reference to `SetROP2@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x1e26): undefined reference to `SetROP2@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x21e0): undefined reference to `SetPixel@16'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2234): undefined reference to `SetPixelV@16'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2285): undefined reference to `SetPixel@16'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x22d6): undefined reference to `SetPixelV@16'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x231f): undefined reference to `GetPixel@12'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2366): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x23a7): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2571): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2593): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x265b): undefined reference to `GetDeviceCaps@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2696): more undefined references to `GetDeviceCaps@8' follow
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2871): undefined reference to `PrintDlgA@4'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x2992): undefined reference to `StartDocA@8'
C:plplotsrclibplplotd.a(wingcc.c.obj):wingcc.c:(.text+0x29b1): undefined reference to `EndDoc@4'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15d): undefined reference to `FT_Get_Kerning'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x18f): undefined reference to `FT_Load_Char'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x24b): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x323): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x375): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x3ec): undefined reference to `FT_Set_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x452): undefined reference to `FT_Get_Kerning'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x499): undefined reference to `FT_Load_Char'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0xe90): undefined reference to `FT_Init_FreeType'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x12cd): undefined reference to `FT_Done_Face'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1314): undefined reference to `FT_New_Face'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x13a9): undefined reference to `FT_Set_Char_Size'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x158f): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x15ba): undefined reference to `FT_Set_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17a0): undefined reference to `FT_Matrix_Multiply'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17bd): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x17e8): undefined reference to `FT_Set_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1bc5): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x1c89): undefined reference to `FT_Done_Library'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x2058): undefined reference to `FT_Vector_Transform'
C:plplotsrclibplplotd.a(plfreetype.c.obj):plfreetype.c:(.text+0x20b8): undefined reference to `FT_Set_Transform'
C:plplotsrclibplplotd.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[/code]
Sign In or Register to comment.