Xcode 4 and non-C compilers

Discussion in 'Mac Programming' started by mbarriault, Aug 6, 2011.

  1. mbarriault macrumors regular

    Dec 3, 2008
    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?
  2. Mac_Max macrumors 6502

    Mar 8, 2004
  3. balamw Moderator


    Staff Member

    Aug 16, 2005
    New England
  4. mbarriault thread starter macrumors regular

    Dec 3, 2008
    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.

Share This Page