From: Stefan on
Good day everybody !

Please, if somebody could help me. I'm using compaq visual fortran
compiler 6.6c under winXP with dislin graphics library (but I think
that is not important for the question). When I'm compiling my
programs i usually use
fl32 source.for -link libraries.lib

but to run source.exe on a different computer, I need .dll file (whick
comes with library).

Is there a way to compile (or to be more exact, to build) a program so
that it is all contained in .exe file. I think this is called static
building, but I haven't been able to solve this problem using help,
which is a little confusing.

Any good help appreciated.

Regards
Stefan
From: michels on
On 17 Apr., 16:09, Stefan <stefan(a)hasnt_got_mail.no> wrote:
> Good day everybody !
>
> Please, if somebody could help me. I'm using compaq visual fortran
> compiler 6.6c under winXP withdislingraphics library (but I think
> that is not important for the question). When I'm compiling my
> programs i usually use
> fl32 source.for -link libraries.lib
>
> but to run source.exe on a different computer, I need .dll file (whick
> comes with library).
>
> Is there a way to compile (or to be more exact, to build) a program so
> that it is all contained in .exe file. I think this is called static
> building, but I haven't been able to solve this problem using help,
> which is a little confusing.
>
> Any good help appreciated.
>
> Regards
> Stefan

The Dislin .dll file contains interface routines between Fortran and
the Windows API functions.
It is written in C. There is just a DLL and an import library of the
DLL, but no static Dislin
library for Compaq Visual Fortran that contains the interface
routines. So you have to distribute
the Dislin DLL disdll.dll with your programs. This is allowed and
should be no problem.

There are some Dislin distributions for Fortran compilers such as g95
and gfortran that contains
complete static Dislin libraries.

Regards,

Helmut