Error compiling on window11 under MINGw64

37 views
Skip to first unread message

Floriano Gianfelici

unread,
Oct 18, 2022, 4:29:48 PM10/18/22
to dislin-users
Hello to everybody
I am trying to compile the DISLIN examples with GFORTRAN on window 11 personal under MINGW-64, but I get the error messages reported below.
Can you give me any suggestion?
regards
floriano gianfelici


C:\dislin\examples>gfortran -o exa_f90.exe exa_f90.o       c:\dislin/dismg.a -luser32 -lgdi32 -lopengl32
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0x1c): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0x25): undefined reference to `__imp__localtime64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0xc8): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0xd1): undefined reference to `__imp__localtime64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0x4f8): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0x3c9a): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(resall.o):resall.c:(.text+0x3ca3): undefined reference to `__imp__localtime64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(errmes.o):errmes.c:(.text+0x16): undefined reference to `__imp___iob_func'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(qqppng.o):qqppng.c:(.text+0x61b4): undefined reference to `__imp__time64'
/usr/lib/gcc/x86_64-pc-msys/11.3.0/../../../../x86_64-pc-msys/bin/ld: c:\dislin/dismg.a(qqppng.o):qqppng.c:(.text+0x61bd): undefined reference to `__imp__localtime64'
collect2: error: ld returned 1 exit status

Helmut Michels

unread,
Oct 19, 2022, 11:08:58 AM10/19/22
to dislin-users
Dear Floriano,

I have tested gfortran version 12.2.0 64-bit of the MSYS2 project (https://www.msys2.org)
with Dislin and Windows 11. It was working fine. Where have you donwloaded your gfortran
version? I could give it a try.

With best regards,

Helmut

Floriano Gianfelici

unread,
Oct 19, 2022, 5:42:27 PM10/19/22
to dislin-users
Dear Helmut
Thank you very much for quick replay and your helpful advice: now with gfortran 12.2.0 dislin works perfectly.
Previously I was using gfortran 11.3.0, but I have a feeling that the problem was more with a faulty setup of MSYS2 (which I have re-installed from above project site) rather than with the compiler itself (although I have not installed and tried it again)
best regards
Floriano
Reply all
Reply to author
Forward
0 new messages