compiling dislin examples with MINGW compiler on windpws

139 views
Skip to first unread message

philippe fullsack

unread,
May 22, 2015, 4:41:11 PM5/22/15
to dislin...@googlegroups.com
I apologize if this is off-place in this forum.
I have used dislin on various platforms -,mac and windows- but I am having difficulties to compile exa_f90 using f90link under the MINGW compiler.

f90link -a exa_f90 gives me the following error message:

dislin module created by a different version of GNU fortran

the actual compilation statement is
gfortran -c -IC:\dislin\gf exa_f90.f90

to fix this I copy the single precision version of dislin in the examples directory as well as the dislin.h file in the C:\dislin directory
and compile without linking:
gfortran -c ./dislin.f90 ./exa_f90.f90 

which gives no error

I then try to link libraries to get an executable:

gfortran -o my.exe ./exa_f90.o ./dislin.o  -luser32 -lgdi32 -lopengl32

but I get many undefined reference to XXX_

where XXX seems to be the name of a dislin routine ,for example XXX=disini

Can someone be kind enough to help me curing the problem (? an underline problem?)

Thank you
Philippe 

"Armin Rauthe-Schöch"

unread,
May 23, 2015, 7:23:34 AM5/23/15
to dislin...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Philippe,

I think you have to recompile the DISLIN module "dislin.mod" with your own compiler. On my DISLIN install under Linux, the GNU Fortran DISLIN module is here: /usr/local/dislin/gf/

Good luck !

Armin
> --
> 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.

- --
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-172-8169059
Email: armin.raut...@mpic.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJVYGMxAAoJEL1MlQaUKLNd/GcH/3L29d7To6NUeiq8gA1A5FXd
hpFX/5C9wLAl5vZjAS5rgqv6qgJ8diu8tL9GCfM+a2lQ91P3Vc8spUR3kjuNmss8
VDmzo5aF5rZ0S9znqTTUEIBqznhuB0luDNlpMAIji+wtIOqfErSLmZQdcWN5joiY
OsM0f5H/0VR3OzbmKS3FFTo4TPksxmTn2xsvydtd0r6HcCc6nBUq1zR7kKJ6jPOp
3oh2mJ0ejXqft1ib94I6++LOEp9Wkay2H7t4HVT6JbidrCRlu3gErllY/HdK6YE8
Di51DHaEURcLHKHVDNcqL+9NPkMnhRmU14Q550VPGY5AVAsu2KDAxngD6kWmJjU=
=kUNW
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages