Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling a DLL on mac

Status
Not open for further replies.

DanSandbergUCONN

Programmer
Jun 13, 2007
14
US
Hi All - I know very very little fortran. I've been given source code for interfaces, modules, and functions and I would like to compile these into a dynamic library so I can call everything from another language. I'm working on a mac and would prefer not to have to switch platforms. Does anyone know how I can go about building the DLL? - Thanks, Dan
 
On the mac, a DLL (Microsoft term) is called a shared object (.so). You can get g95 or gfortran for the Mac. Look for the OSX versions.

For g95, have a look at
gfortran uses gcc flags so you probably need to use -shared,Wl and compile with -fPIC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top