Getting gcc4.4 to work with XCode

William B. Clodius wclodius at los-alamos.net
Sat Jan 30 15:06:06 PST 2010


I downloaded and installed macport gcc44 primarily so I could use more recent versions of gfortran than are supported by Apple's gcc 4.2 distributed with XCode. I can use make if necessary, but would prefer to use XCode. It appears that macport installed its version of gcc in /opt/local while XCode's version is installed in /usr/local. In searching the internet, I find descriptions of how to get gfortran to work with XCode, but they seem to assume that gcc (whether XCode's or macport's) is installed in XCode's default directory tree. I can't seem to get XCode to accept the gfortan libraries libgfortran and libgfortranbegin. My suspicion is that I first have to set XCode to accept gcc44, but of course searching the net for gcc44, XCode, and macports yields a large number of links. Can you point me to a starting link on the topic?

FWIW I have a MacBook Pro with a 2.4 GHz Intel Core 2 Duo processor running Mac OS X 10.6.2 (Snow Leopard).


More information about the macports-users mailing list