Version 11.5 Visual Studio Intel Fortran integration

59 views
Skip to first unread message

Gerhard Gerdes

unread,
Feb 23, 2023, 5:39:12 AM2/23/23
to dislin-users
I have a problem to integrate Dislin Distribution 11.5 into the Fortran application in Visual Studio. In the FAQ the parameter settings are given as follows:

"Add the DISLIN libraries disifc.lib and disdll.lib together with the system libraries user32.lib and gdi32.lib to
Properties -> Linker -> Input -> Additional Dependencies
(i.e. c:\dislin\disifc.lib c:\dislin\disdll.lib user32.lib gdi32.lib)"

Where can I find the libraries disifc.lib, disdll.lib user32.lib gdi32.lib? They are not available in the installation in my c:/dislin directory .

Regards
Gerd

Helmut Michels

unread,
Feb 23, 2023, 6:15:57 AM2/23/23
to dislin-users
Dear Gerd,

there are different distributions of Dislin for Intel Fortran. The distribution dl_11_if.zip is compiled from the Dislin
Fortran 90 code. This distribution contains the libraries disifc.lib and disdll.lib. The distribution dl_11_ic.zip is created
from the Dislin C source together with some wrapper routines for calling c code from Fortran. There are 32- and 64-bit
versions of dl_11_ic.zip. If you are creating 32-bit programs, you should link with the Dislin library disifm.lib instead of
disifc.lib and disdll.lib. For 64-bit programming the name of the Dislin library is disifl.lib.
user32.lib and gdi32.lib are Windows systems libraries. They are required by Dislin.

With best regards,

Helmut

Gerhard Gerdes

unread,
Feb 24, 2023, 8:00:08 AM2/24/23
to dislin-users
Dear Helmut,

sorry to bother you again. I tried to follow your advice, but I'm still not succesfull.
  • I am running Visual Studio 2019 (VS)
  • I installed the latest DISLIN Distribution for Windows 64-bit
  • I choose d_11_ic.zip, dated 15.03.2022 and installed it in c:\Dislin, where disifl.lib is availble now
In VS I put
  • Properties -> Fortran -> General -> Additional Include Directories :   c:\dislin\ifc ( I tried also  c:\dislin)
  • Properties -> Linker -> Input -> Additional Dependencies: c:\Dislin\disifl.lib
But in VS I get the message:
"error #7002: Error in opening the compiled module file. Check INCLUDE paths. [DISLIN]

In the Windows system the environment variable DISLIN is set to c:\dislin. Path is set to  c:\dislin\win

Regards Gerd

Helmut Michels

unread,
Feb 24, 2023, 9:25:10 AM2/24/23
to dislin-users
Dear Gerd,

everthing looks good. The setting c:\dislin\ifc in  'Additional Include Directories' is also correct, but there is no
pre-compiled file 'dislin.mod' in this  directory for the 64-bit distribution of Dislin for Intel Fortran. It's noted in the
Readme file. You have to compile the file dislin.f90 in the directory c:\dislin\ifc with your compiler version. For example,
with the command 'ifort -c dislin.f90' at the command line.

Gerhard Gerdes

unread,
Feb 24, 2023, 11:24:20 AM2/24/23
to dislin-users
Dear Helmut,

still it doesn't run. I compiled dislin.f90 and now there is dislin.mod available in c:\dislin\ifc.
Resulting in the error: "Verweis auf nicht aufgelöstes externes Symbol"...
and "unresolved externals"

I have upto now always used the 32-bit version, where I never had this problems.

Thanks already for your help.

Best regard Gerd

Helmut Michels

unread,
Feb 24, 2023, 12:04:38 PM2/24/23
to dislin-users
Dear Gerd,

a reason for the undefined symbols could be  that Visual Studio tries to create 32-bit applications while it is linking
with the 64-bit Dislin library. Please check if the target is really x64.

With best regards,

Helmut

Gerhard Gerdes

unread,
Mar 16, 2023, 12:49:58 PM3/16/23
to dislin-users
Dear Helmut,

just to give you an feed-back: my problem was simply a mixture of Win32 and x64 settings in Visual Studio, as you indicated. Now I have DISLIN in both versions available. 

Thanks for your help.
Gerd

Helmut Michels

unread,
Mar 16, 2023, 12:57:15 PM3/16/23
to dislin-users
Dear Gerd,

very good. Thank you for the information.

With best regards,

Helmut
Reply all
Reply to author
Forward
0 new messages