mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] netcdf undefined references from libcrypt32


From: Richard Crozier
Subject: Re: [Mingw-cross-env-list] netcdf undefined references from libcrypt32
Date: Sun, 20 Oct 2019 21:31:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0



On 20/10/2019 03:26, Tony Theodore wrote:


On 19 Oct 2019, at 12:24, Richard Crozier via Mingw-cross-env-list 
<address@hidden> wrote:


To get the test to pass, I had to manually add the follwoing libs:

-lcrypt32 -luser32 -lwldap32 -lunistring -lgcrypt -liconv -lgpg-error -lws2_32

now I have other problems :-)

Try adding:
     LIBS=???`x86_64-w64-mingw32.static-pkg-config --libs libcurl`"

to your configure invocation.

Cheers,

Tony



This did work thanks, it now get me to the new error I mentioned. This error is "undefined reference to `__gxx_personality_v0'". Some googling indicated that this is something to do with not linking to libstdc++. Most of the things I've found have been about people trying to build C++ code with gcc rather than using g++. In my case as shown in the full error below libtool does seem to be using g++, and libstdc++ is also explicitly added, so I am out of ideas. Can you suggest what might be the problem?


libtool: link: x86_64-w64-mingw32.static-g++ -std=c++11 -D_USE_MATH_DEFINES -fstack-protector -o .libs/testexcept.exe testexcept.o ./.libs/libmbutil.a -L/opt/mxe/usr/x86_64-w64-mingw32.static/lib -L/opt/mxe/usr/mingw/lib -L/opt/mxe/usr/lib -lgcc -L/opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0 -L/opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0/../../../../x86_64-w64-mingw32.static/lib/../lib -L/opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0/../../../../x86_64-w64-mingw32.static/lib -lstdc++ /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0/libgfortran.a -lamd /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libcurl.a -lsuitesparseconfig -lcholmod -lnetcdf /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libhdf5_hl.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libhdf5.a -ldl /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libmfhdf.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libdf.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libportablexdr.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libjpeg.a /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0/libgomp.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libgnutls.a -lhogweed /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libgmp.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libidn2.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libssh2.a -lz -lnettle -lmetis -lcolamd -lccolamd -lcamd /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libunistring.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libcharset.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libgcrypt.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libgpg-error.a -lws2_32 /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libintl.a /opt/mxe/usr/x86_64-w64-mingw32.static/lib/libiconv.a -lcrypt32 -lwldap32 -lpthread -lmingw32 -lmoldname -lmingwex -lmsvcrt /opt/mxe/usr/lib/gcc/x86_64-w64-mingw32.static/5.5.0/libquadmath.a -ladvapi32 -lshell32 -luser32 -lkernel32 testexcept.o:(.data.rel.local.DW.ref.__gxx_personality_v0[DW.ref.__gxx_personality_v0]+0x0): undefined reference to `__gxx_personality_v0'
collect2: error: ld returned 1 exit status
Makefile:564: recipe for target 'testexcept.exe' failed
make[2]: *** [testexcept.exe] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/rcrozier/src/mbdyn-official-git/libraries/libmbutil'
Makefile:449: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/rcrozier/src/mbdyn-official-git/libraries'
Makefile:562: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]