Running Examples
- Last UpdatedFeb 09, 2023
- 1 minute read
The basic principles for compiling, linking and running DARs applications programs have been outlined in appendix DARs Library Details.
The example programs illustrated in Use of Data Access Routines are best implemented using scripts similar to compload, which compiles and loads any DARs Fortran application program. The name of the FORTRAN source file is entered as a command line argument (for example, compload f77_example1.f).
The released script will compile and link a DARs application.
rem @echo off
Rem $Id: compload.bat,v 1.1 1998/09/30 14:40:33 pne Exp $
Rem NT .bat file to compile and link a DARs application program.
Rem Argument[1] is the file to be compiled.
if not "%1"=="" goto GOTFILE
echo compload - no filename specified.
goto FINISH
:GOTFILE
Rem Compile
IFORT /c %1.f
Rem and link
link %1.obj /subsystem:console/entry:mainCRTStartup %PDMSEXE% \dars\d3lib.lib
:FINISH