Link problems
Peter Williams <[email protected]> Sun, 31 May 2020 11:17:46 +0100
| Newsgroups | gmane.comp.gnu.mingw.user |
|---|---|
| Message-ID | <CANt1qAHDNm1Y7j=P+TJ18tWx0=bJ-8gQivkYj1znEph=wWkfgA@mail.gmail.com> |
Dear MinGW On 29/05/2020 I updated my MinGW package on my Desktop PC using the MinGW installer. To check the new arrangement I attempted to compile several programs that had previously compiled and run successfully. Graphics programs running under plplot and numerical programs using Numerical Recipes all failed with a common set of linking error messages. An example is shown below. Can you advise me on these errors? Am I missing something? It runs with no errors on my un-updated laptop. I notice that there reference to: /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:639: ...... C:\Pete\PlPXmpl>c:\Windows\System32\cmd.exe Microsoft Windows [Version 10.0.18363.836] (c) 2019 Microsoft Corporation. All rights reserved. C:\Pete\PlPXmpl>x03.bat gcc -c -I C:\plplot32\include\plplot x03.c gcc -o x03.exe x03.o C:\plplot32\lib\libcsirocsa.a C:\plplot32\lib\ libplplot.a C:\plplot32\lib\libqsastime.a -mconsole -mwindows -lm c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(mbrscan.o):(.text+0xb6): undefined reference to `SetLastError@4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(wcharmap.o):(.text+0x208): undefined reference to `WideCharToMultiByte@32' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingwex.a(codeset.o):(.text+0xbe): undefined reference to `GetCPInfo@8' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingwex.a(codeset.o):(.text+0x143): undefined reference to `GetCPInfo@8' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_mutex_init_function': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:639: undefined reference to `CreateSemaphoreW@16' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_key_create': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:590: undefined reference to `TlsAlloc@0' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: /home/ keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./gthr-default.h:597: undefined reference to `__mingwthr_key_dtor' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_getspecific': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:621: undefined reference to `SetLastError@4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_mutex_lock': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:655: undefined reference to `InterlockedIncrement@4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_mutex_unlock': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:689: undefined reference to `InterlockedDecrement@4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: /home/ keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./gthr-default.h:690: undefined reference to `ReleaseSemaphore@12' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_setspecific': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:629: undefined reference to `TlsSetValue@8' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_once': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:562: undefined reference to `InterlockedIncrement@4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/ mingw/bin/../lib/gcc/mingw32/9.2.0/libgcc_eh.a(emutls.o): in function `_ gthread_mutex_lock': /home/keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./ gthr-default.h:656: undefined reference to `WaitForSingleObject@8' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: /home/ keith/builds/mingw/gcc-9.2.0-mingw32-cross-native/mingw32/libgcc/./gthr-default.h:662: undefined reference to `InterlockedDecrement@4' collect2.exe: error: ld returned 1 exit status Peter Williams -- Peter Williams [email protected] _______________________________________________ MinGW-Users mailing list [email protected] This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.osdn.me/mailman/listinfo/mingw-users Also: mailto:[email protected]?subject=unsubscribe