
In later chapters we will look at how to install and use Objective-C on Windows and Linux systems for those that do not have access to Mac OS X. Objective-C 2.0 Essentials Print and eBook (ePub/PDF/Kindle) editions contain 31 chapters. I haven't looked at the details of the package, so I'm not sure whether it would work between clang and port installed gcc or only with several different versions of port installed gcc Purchase the full edition of this Objective-C book in Print ($14.99) or eBook ($12.99) format The MacPorts prefix to the selected version. It symlinks the standard compiler executables in If you want to replace (temporarily or permanently) the clang complier by gcc, you can do it by setting the CC env var the following way for example:Įxport CC=/opt/local/bin/gcc-mp-4.9 # set GCC as default C compilerĪs a side note, please note that for the port select gccVersion to work, you will need to install gcc_select: pejvan$ port info gcc_selectĭescription: gcc_select installs files that allow 'port select' to switch the default version of gcc. Warranty not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This is free software see the source for copying conditions. You can then run gcc with the full path to the binaries: pejvan$ gcc-mp-4.9 -version You can verify you've got the gcc binaries installed: pejvan$ ls -l /opt/local/bin/gcc* the one run withoutĪfter you successfully run the install command for gcc (here version 4.9): What this means is which versionīecomes the one most would consider the default, e.g.

This allows you to choose which version, among several installed versions Select between multiple versions of a versioned port


The manual states that the select command selects between multiple versions of a versioned port, which I believe is not your case here: pejvan$ port help select I don't think your port select command did what you expected.
