Re: c and fortran static libraries
Re: c and fortran static libraries
- Subject: Re: c and fortran static libraries
- From: Markus Hitter <email@hidden>
- Date: Wed, 22 Feb 2006 13:42:54 +0100
Am 21.02.2006 um 21:10 schrieb Ryan Glover:
I have been experimenting with including static libraries in xcode and
calling them from obj-c (I am a noob). I wanted to know, are static
library files a universal format?
Universal in the sense of more than one architecture? If you build
them that way, yes. If you build single architecture, no.
For example, I can compile fortran
into a static .a library, can I call this library from objective c the
same way I call a library created in c?
The ABI (calling conventions) have to match. I did such things
several years ago and it worked with minimal tweaks (add an "_"
before each Fortran subroutine name). Some small tests and looking at
"nm"'s output should give an definitive answer.
The
practical reason I ask is because i have a library that I know works
in fortran but xcode won't compile with it.
Xcode doesn't include a fortran compiler. Check <http://
hpc.sourceforge.net/>
Next time, you better ask on the Xcode list as there is no Cocoa
involved in all this.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden