For Programmers: Free Programming Magazines  


Home > Archive > Fortran > June 2007 > Fortran 77 DLL









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Fortran 77 DLL
halvor.lund@gmail.com

2007-06-15, 4:21 am

I'm trying to convert a Fortran 77 executable into a DLL, which I in
turn intend to use in a C program. The Fortran program is already
working as a standalone application. What I can't figure out, is how
to tell the compiler which functions or subroutines I want to export.
I'm using Watcom Fortran 77 v. 11 and trying to compile a Win32 DLL.

It would also be nice if you could tell me how I make use of this DLL
from a C program.

e p chandler

2007-06-15, 10:08 pm

On Jun 15, 2:24 am, halvor.l...@gmail.com wrote:
> I'm trying to convert a Fortran 77 executable into a DLL, which I in
> turn intend to use in a C program. The Fortran program is already
> working as a standalone application. What I can't figure out, is how
> to tell the compiler which functions or subroutines I want to export.
> I'm using Watcom Fortran 77 v. 11 and trying to compile a Win32 DLL.
>
> It would also be nice if you could tell me how I make use of this DLL
> from a C program.


1. Manuals for Open Watcom, which are quite similar to those of
version 11 are available at

http://www.openwatcom.com/index.php/Manuals

see the "Fortran 77 Programmer's Guide". p 237 is Windows NT DLLs. p
283 is Mixed language programming.

2. Try the newsgroups

openwatcom.users.fortran
openwatcom.users.c_cpp

3. Manuals for version 11.0c are available at

ftp://ftp.openwatcom.org/archive/11.0c/docs/

see table of contents, page numbers close to those in open watcom docs

4. pragma aux and various other features and switches particular to
watcom/open watcom [yet another toolset to learn :-(]

HTH

- e-mail: epc8 at juno dot com









Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com