How can I use DISLIN in compaq visual Fortran

94 views
Skip to first unread message

Hongyuan

unread,
May 21, 2012, 5:41:55 AM5/21/12
to dislin-users
Hi,
How can I use dislin in compaq visual fortran 6.6.
I have tried to add all lib files into my new project as add files,
which are disdll, disdll_d, disdvf, disdvf_d.
Do I also need to copy the DLL files to somewhere?
Thanks a lot.

"Armin Rauthe-Schöch"

unread,
May 21, 2012, 5:47:24 AM5/21/12
to dislin...@googlegroups.com
Hi,

you need at least a "use dislin" statement at the beginning of the code. Also your compiler needs to know where to find the "dislin.mod" file.

"dislin" is for real*4 numbers, while "dislin_d" is for real*8 numbers. So you need only one of them. The same is true for "disdvf"/"disdvf_d", I think.

What error message do you get from your compiler when trying to compile a program with dislin code ?


Cheers,
Armin
--
Dr. Armin Rauthe-Schöch
Max Planck Institute for Chemistry
Department of Atmospheric Chemistry
Hahn-Meitner-Weg 1
D-55128 Mainz / GERMANY
Tel. +49-6131-305-4123
Fax. +49-6131-305-4009
Email: armin.raut...@mpic.de

Hongyuan

unread,
May 21, 2012, 9:52:25 AM5/21/12
to dislin-users
Hello,
Thank you very much foe your reply.
There is no any error in running compiler. when I run the build
"xxx.exe" , a warning is like this
LINK : warning LNK4098: defaultlib "libc.lib" conflicts with use of
other libs; use /NODEFAULTLIB:library
It is irritating.
When I run an example, I cannot get the expected results as shown by
that examples, e.g. ex 12-2, ex11-1.

Hong

On May 21, 11:47 am, "Armin Rauthe-Schöch" <armin.rauthe-
> Email: armin.rauthe-scho...@mpic.de

"Armin Rauthe-Schöch"

unread,
May 21, 2012, 10:03:58 AM5/21/12
to dislin...@googlegroups.com
Hi,

did you follow all installation instruction from "readme.dvf" of the "dl_10_df.zip" DISLIN distribution ? Did you recompile the "dislin.mod" or "dislin_d.mod" module with your compiler version from the file "dislin.f90" or "dislin_d.f90" ?

In any case, you cannot use both "disdll" and "disdll_d" and both "disdvf" and "disdvf_d". You have to decide to use either the real*4 OR the real*8 version of the libraries.

The "disdll.lib" and "disdvf.lib" (for real*4) should not conflict with "libc.lib" but they might conflict with the "disdll_d.lib" and "disdvf_d.lib".

Are the examples working when you compile them from the command-line as described in "readme.dvf" ?


Good luck!

Armin
Email: armin.raut...@mpic.de
Reply all
Reply to author
Forward
0 new messages