Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

Make dll for calling from python (ctypes)

antony
Beginner
806 Views

 

How do I compile/link a DLL so that *all* functions and variables are visible in python? Using gfortran one just compiles use -shared -fPIC, then ctypes can load functions from the dll by name. Options I've tried so far do not seem to include any of the names in the DLL when compiled with ifort. Thanks.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
806 Views

Sorry, there is no "wildcard" option to make all symbols exported. We've had a request for this feature before, I'll add you to the list of requesters.  Issue ID is DPD200034605.

0 Kudos
Reply