I’m importing compiled Fortran code as a shared library within a custom package I have created. However, when I call a Fortran function from my module within Python using JuliaCall (GitHub - cjdoris/PythonCall.jl: Python and Julia in harmony.) and Ccall I get a symbol not found error. My module looks like this:
module Simulation
using Libdl
Libdl.dlopen("FortranFunctions", RTLD_LAZY | RTLD_DEEPBIND | RTLD_GLOBAL)
include("julia_code_that_calls_fortran.jl")
is this the proper way to import a shared library within a module? I’m calling it in Python using JuliaCall via:
from juliacall import Main as jl
jl.seval("using Simulation")
jl.Simulation.*ccall function within julia_code_that_calls_fortran.jl* (Pseudocode)