Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mbarriault

macrumors regular
Original poster
Dec 3, 2008
109
0
In one of my Xcode projects, I have a single source file in Fortran (the rest are C++), and am trying to find some way of convincing Xcode to compile it. Compiling and linking (even using Clang) work just fine via command-line.

My initial thought was to add the .f95 file to the "Compile Sources" build phase, then add a build rule that processes Fortran source files with gfortran, but it doesn't even show up in the build log. Anyone have any thoughts on the matter?
 
My question isn't Fortran-specific, it could apply to any compiled language unsupported by Xcode. The compiler I've gotten from the R site, but it doesn't add anything to Xcode.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.