Application Program Compilation and Linking
- Last UpdatedNov 10, 2025
- 1 minute read
The DARs library is provided to allow programmers to interface Outfitting DARs to programs compiled using the appropriate compiler.
Compilation and linking can be achieved by the use of compload.bat.
Outfitting 12 uses the standard MicroSoft C/C++ compiler, cl, and the Intel Fortran compiler, ifort. Fortran code will need to be compiled with the following options to ensure Fortran/C/C++ compatibility:
/iface:cref /iface:mixed_str_len_arg /libs:dll
/threads /recursive /op /real-size:64
These should be entered into a plain text file named ifort.cfg. This file should then be referenced by setting the environment variable IFORTCFG to the full path to ifort.cfg.
The following is an example ifort.cfg file:
# This is the Fortran configuration for "Double Precision", in which REAL
# is treated as DOUBLE (64-bit) [but DOUBLE is NOT QUAD (128-bit)]
# Tells the compiler to use calling conventions C, REFERENCE.
/iface:cref
# This option tells the compiler that the hidden length passed for a
character
# argument is to be placed immediately after its corresponding character
argument.
/iface:mixed_str_len_arg
# Causes the compiler to ignore case differences in identifiers and to
convert
# external names to uppercase.
/names:uppercase
# Specifies a single-threaded, dynamic-link (DLL) library.
/libs:dll
# Tells the linker to search for unresolved references in a multithreaded
# run-time library.
/threads
# Tells the compiler that all routines should be compiled for possible
recursive execution.
/recursive
/Op
# Double indecision REAL but NOT DOUBLEs
/real-size:64