Compiling FORTRAN Code
There is different OS support for Windows and Linux as shown below.
Windows: Visual Studio 2019, Intel one API 2024.0

Compiler flags:
/integer_size:64
/real_size:64
/double_size:64
/iface:default
Example:
ifort /integer_size:64 /real_size:64 /double_size:64 /iface:default /c
tqex01.F
ifort/exe:tqex01.exe tqex01.obj libtq-win-x64-<libraryversion>.lib
If you are using a newer compiler than the one supported, you might need to use hyphen (-
) instead of underscore (_
) when specifying these compiler switches: /integer_size /real_size /double_size
would then be /integer-size /real-size /double-size
.
Linux: GNU compiler version 9.4

Compiler flags:
-fdefault-real-8
-fdefault-double-8
-fdefault-integer-8
Example:
gfortran –c -fdefault-real-8 -fdefault-double-8 \fdefault-integer-8 tqex01.F
gfortran –o tqex01 tqex01.o libtq-linux-x86_64-gfortran-<libraryversion>.so
Linux: Intel oneAPI 2024.0

Compiler flags:
-real-size 64
-double-size 64
-integer-size 64
Example:
ifort –c real-size 64 -double-size 64 \ integer-size 64 tqex01.F
ifort –o tqex01 tqex01.o libtq-linux-x86_64-ifort-<libraryversion>.so