How to compile the provided pyfort example on Windows: 1) start DIGITAL Visual Fortran 2) create a new dll project (File -> New -> Fortran Dynamic Link Library); for 'Project Name' type 'testme' and choose as location the directory where 'testme.f' resides; choose 'empty dll project' 3) add your fortran files (Project -> Add To Project -> Files), here 'testme.f' 4) make a definition file with all symbols to be exported (name it 'testme.def'), or, if you don't know how to do this see below. 5) add the definition file to the project (Project -> Add To Project -> Files -> testme.def) 6) compile 9) execute: pyfort -b -ltestme -L testpyf.pyf After this you should have a file called 'testpyf.pyd'. Copy this file, 'testme.dll' and 'testit.py' to this directory and you should now be able to run testit.py If you don't know how to export symbols do the following: 1) compile without a definition file 2) in a DOS window, change to the directory where the created dll resides (usually 'Debug' or 'Release') 3) copy the script dllsymbols.py to this directory 4) type: python dllsymbols.py testme.obj (this uses the visual studio tool dumpbin.exe, make sure it's in your PATH or edit the respective line in the script) -- Information provided by Reinhold Niesner