Xmat_Oedo_hypo_vw96.c
) this would be something similar togfortran -ffree-form -cpp -DCINTER -DNOBIB xmat.f -c
gcc xmat.o Xmat_Oedo_hypo_vw96.c -lgfortran -lm -o Xmat_Oedo_C
for Linux with GCC or from Windows with Intel compiler similar toifort /free /fpp /DCINTER /DNOBIB xmat.f /c
cl xmat.obj Xmat_Oedo_hypo_vw96.c /link /out:Xmat_Oedo_C.exe
As shown, it is important to define the macros CINTER
and NOBIB
next to the flags for free format and preprocessing when compiling.The C code should use either the interface
xmat_console_CInter
or Dot_Values_CInter
. The memory for input and output variables must also be managed on the C side.Linked files