Configuring DISLIN in Codeblocks MinGW for Fortran

12 views
Skip to first unread message

LIMON DAS

unread,
Jan 4, 2026, 7:10:08 AM (6 days ago) Jan 4
to dislin-users
Dear Developer,
Can you help me Configuring DISLIN in Code blocks MinGW for Fortran.
I have tried with the help of ChatGPT but failed.
Thank you for reading.

Helmut Michels

unread,
Jan 4, 2026, 9:24:36 AM (6 days ago) Jan 4
to dislin-users
Hi,

for using Dislin with GNU Fortran from Code blocks you need the following settings:

Settings -> Compiler -> Search directories: 
   c:\dislin\gf

Settings -> Compiler-> Linker Settings:
   c:\dislin\dismgu.a
   user32
   gdi32
   opengl32

The file 'dislin.f90' in the directory 'c:\dislin\gf' should be compiled with  your compiler version.
For example:  gfortran -c dislin.f90

With best regards,

Helmut
Message has been deleted

LIMON DAS

unread,
Jan 6, 2026, 5:33:34 AM (4 days ago) Jan 6
to dislin-users
Thanks for your quick response.I have added gcc,gfortan in OS environment variable.I have tried to recompile DISLIN by gfortran -c  c:\dislin\gf\ dislin.f90
But I get no .mod file or any output in console.
. I am using codeblocks with mingw).
I wish your help.Thank you

Helmut Michels

unread,
Jan 6, 2026, 5:41:30 AM (4 days ago) Jan 6
to dislin-users
Hi,

the command gfortran -c c:\dislin\gf\dislin.f90 will create the file dislin.mod in your current working
directory. Please, use the statements:

      cd \dislin\gf
      gfortran -c dislin.f90

This should create a new file dislin.mod file in the directory \dislin\gf.

With best regards,

Helmut
Reply all
Reply to author
Forward
0 new messages