Request for help

77 views
Skip to first unread message

Andrzej Wróbel

unread,
Oct 22, 2018, 6:35:53 AM10/22/18
to dislin-users

Hello

 

I have not used the SimplyFortran compiler for about 2 years. Currently, I wanted to use it. I've uploaded a new version 2.41. When I try to compile the program, the following error occurs:

 

Generating Test_Tif.exe

c:/program files (x86)/simply fortran 2/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -ldis

collect2.exe: error: ld returned 1 exit status

 

Error: Last command making (Test_Tif.exe) returned a bad status

Error: Make execution terminated

 

What can I do in this case?

 

Best regards

Andrzej Wrobel

Rauthe-Schöch, Armin

unread,
Oct 22, 2018, 8:22:00 AM10/22/18
to dislin-users
Hi Andrzej,

could you please post the complete command-line that you used for compilation and linking of your test program?

The error message points to a problem in finding the DISLIN library during the linking of your test program.

Probably you need an additional option "-LC:/path/to/your/dislin/libraries" in the command-line for the linker.

Good luck,
Armin


--
Dr. Armin Rauthe-Schöch
now at:
Deutscher Wetterdienst
Global Precipitation Climatology Centre
Frankfurter Straße 135
D-63067 Offenbach am Main
Germany
Tel. +49-(0)69-8062-3087

________________________________________
From: dislin...@googlegroups.com <dislin...@googlegroups.com> on behalf of Andrzej Wróbel <andrzej...@gmail.com>
Sent: Monday, October 22, 2018 12:35:53 PM
To: dislin-users
Subject: Request for help
--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com<mailto:dislin-users...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

Helmut Michels

unread,
Oct 22, 2018, 8:33:26 AM10/22/18
to dislin-users
Hi Andrzej,

I think the difference is that Simply Fortran is using a 64-bit GFortran compiler (version 7.2.0). You also have to use the 64-bit distribution
of Dislin for Mingw, or linking will fail. The project settings for Dislin in Simply Fortran are:

         Project -> Options -> Compiler Flags
                   Fortran Compiler:    -I\dislin\gf
                   Linker:                    \dislin\dismg.a  -luser32  -lgdi32  -lopengl32

I have tested it with the latest Simply Fortran version 2.41.

With best regards,

Helmut

Andrzej Wróbel

unread,
Oct 22, 2018, 11:42:43 AM10/22/18
to dislin-users

I completed the settings as you wrote. Unfortunately, once again the error occur:

 

Generating Test_Tif.exe

gfortran.exe: error: \dislin\dismg.a: No such file or directory

Error: Last command making (Test_Tif.exe) returned a bad status

Error: Make execution terminated

* Failed *

 

I tried to install the dislin again with the Simply Fortran Package Manager, but my account expired after two years.

Helmut Michels

unread,
Oct 23, 2018, 4:51:35 AM10/23/18
to dislin-users
Dear Andrzej,

do you really have installed Dislin in the directory c:\dislin? Please check that the file dismg.a is located in the directory.
The size of the the latest 64-bit version of dismg.a is 2165462 bytes, the 32-bit version has 2068518 bytes.
Sometimes, people make the mistake to extract and install Dislin in the same directory. Then strange things
happen.

With best regards,

Helmut

John Wasilewski

unread,
Nov 8, 2018, 11:58:00 AM11/8/18
to dislin...@googlegroups.com
Look in Simply Fortran's tech support forum, who h is excellent.  You will find advice there on how to set up SF to USE Dislin.  Plenty of people manage without the Package Manager.  For example, I think the Package Manager is a Win Doze application.  I, and many others, use Linux or OSX.  have posted there myself.

There is a complete set of instructions on the forum about how to use SF and Dislin with the Raspberry Pi.  And go back far enough, to the time before Package Manager was available, Geoff gave me advice on the Forum about what settings I needed in SF for Dislin under Win Doze.
---
John


--
You received this message because you are subscribed to the Google Groups "dislin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dislin-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages