• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: c and fortran static libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >c and fortran static libraries (From: "Ryan Glover" <email@hidden>)

  • Prev by Date: Re: CFPrefDockItems sample code. Where did it go?
  • Next by Date: Re: NSScriptCoercionHandler ?
  • Previous by thread: c and fortran static libraries
  • Next by thread: [Meet] Next Seattle XCoders meeting, Thursday, February 23rd
  • Index(es):
    • Date
    • Thread