My apologies to be posting such a basic problem here, I'm getting undefined
references:

greg@Homerw7 MINGW32 /D/mingw/msys32/tmp/bldplplot/drivers
> $ cd /D/mingw/msys32/tmp/bldplplot/drivers &&
> /D/mingw/msys32/mingw32/bin/gcc.exe  -shared -o ../dll/pdf.dll
> -Wl,--major-image-version,0,--minor-image-version,0 -Wl,--whole-archive
> CMakeFiles/pdf.dir/objects.a -Wl,--no-whole-archive ../dll/libplplot.dll.a
> D:/mingw/msys32/mingw32/lib/libhpdf.dll.a
> D:/mingw/msys32/mingw32/lib/libshp.dll.a
> D:/mingw/msys32/mingw32/lib/libfreetype.dll.a ../dll/libcsirocsa.dll.a
> ../dll/libcsironn.dll.a D:/mingw/msys32/mingw32/lib/libqhull.dll.a
> ../dll/libqsastime.dll.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32
> -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
> CMakeFiles/pdf.dir/objects.a(pdf.c.obj):pdf.c:(.text+0x293): undefined
> reference to `_imp__HPDF_New'
> CMakeFiles/pdf.dir/objects.a(pdf.c.obj):pdf.c:(.text+0x2d1): undefined
> reference to `_imp__HPDF_SetCompressionMode'
> CMakeFiles/pdf.dir/objects.a(pdf.c.obj):pdf.c:(.text+0x423): undefined
> reference to `_imp__HPDF_AddPage'
> CMakeFiles/pdf.dir/objects.a(pdf.c.obj):pdf.c:(.text+0x45a): undefined
> reference to `_imp__HPDF_Page_SetSize'
> CMakeFiles/pdf.dir/objects.a(pdf.c.obj):pdf.c:(.text+0x47e): undefined
> reference to `_imp__HPDF_Page_SetSize'
>

etc., all named in the second library called out, libhpdf.dll.a which is
the target of my test:

greg@Homerw7 MINGW32 /D/mingw/msys32/tmp/bldtst
> $ nm /mingw32/lib/libhpdf.dll.a | grep _HPDF_Page
> 00000000 I __imp__HPDF_Page_TextWidth@8
> 00000000 T _HPDF_Page_TextWidth@8
> 00000000 I __imp__HPDF_Page_TextRect@32
> 00000000 T _HPDF_Page_TextRect@32
> 00000000 I __imp__HPDF_Page_TextOut@16
> 00000000 T _HPDF_Page_TextOut@16
> 00000000 I __imp__HPDF_Page_Stroke@4
> 00000000 T _HPDF_Page_Stroke@4
> 00000000 I __imp__HPDF_Page_ShowTextNextLineEx@16
> 00000000 T _HPDF_Page_ShowTextNextLineEx@16


greg@Homerw7 MINGW32 /D/mingw/msys32/tmp/bldplplot/drivers
> $ nm /mingw32/lib/libhpdf.dll.a | grep _HPDF_New
> 00000000 I __imp__HPDF_NewEx@20
> 00000000 T _HPDF_NewEx@20
> 00000000 I __imp__HPDF_NewDoc@4
> 00000000 T _HPDF_NewDoc@4
> 00000000 I __imp__HPDF_New@8
> 00000000 T _HPDF_New@8
>
> greg@Homerw7 MINGW32 /D/mingw/msys32/tmp/bldplplot/drivers
> $ nm /mingw32/lib/libhpdf.dll.a | grep _HPDF_AddPage
> 00000000 I __imp__HPDF_AddPageLabel@20
> 00000000 T _HPDF_AddPageLabel@20
> 00000000 I __imp__HPDF_AddPage@4
> 00000000 T _HPDF_AddPage@4


Is there something in the gcc flags that I'm getting wrong, or in the build
of the library?

Thanks,
Greg

>
>
------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to