what is the proper Fortran C interface ?
Posted: 12 Aug 2020, 06:12
Hi
assuming my fortran and C source files are correctly written where the fortran file calls a function inside the C file, are the following two Linux commands also correct ?
gcc -shared -o myCfile.so -fPIC myCfile.C
elmerf90 -shared -o myFortfile.so -fPIC myFortfile.F90 myCfile.so
( I intend to then execute
ElmerSolver mycase.sif
where
...
Solver
Procedure = myFortfile ....
will be inserted in the mycase.sif file)
assuming my fortran and C source files are correctly written where the fortran file calls a function inside the C file, are the following two Linux commands also correct ?
gcc -shared -o myCfile.so -fPIC myCfile.C
elmerf90 -shared -o myFortfile.so -fPIC myFortfile.F90 myCfile.so
( I intend to then execute
ElmerSolver mycase.sif
where
...
Solver
Procedure = myFortfile ....
will be inserted in the mycase.sif file)