A Makefile can be created with the following text:
#ifort -fPIC -shared -o axial_force.so axial_force.for
#gfortran -fPIC -shared -o axial_force.so axial_force.for
#g++ -fPIC -shared -o axial_force.so DllFunc_LN.cpp
g++ -fPIC -shared -o axial_force.so DllFunc_LN.cpp
One of the compile command lines in the Makefile should be uncommented, according to the language of the user subroutine and according to the compiler that is available. Note that:
• If you use a g++, make sure that the files DllFunc_LN.cpp and SYSCAL_LN.H are located in the local directory with the Makefile.
• If you use a Fortran, make sure that the files axial_force.for and SYSCAL_LN.F are located in the local directory with the Makefile.
You need to execute the make command (with your Makefile) in order to compile your file.