Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p> So the full process for getting gcc 4.2 to work with a fresh install of Xcode 4.2 (non-iOS) is:</p> <ol> <li><p>Install gcc 4.2</p> <pre class="lang-bsh prettyprint-override"><code>sudo port install apple-gcc42 </code></pre></li> <li><p>Tweak Xcode so that gcc 4.2 appears as a compiler option, by editing the Xcode 4.2 GCC 4.2.xcspec file to get gcc 4.2 to show in the list of compiler options:</p> <ol> <li><p>Open the xcspec file for editing:</p> <pre class="lang-bsh prettyprint-override"><code>sudo vi "/Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library/Xcode/Plug-ins/GCC 4.2.xcplugin/Contents/Resources/GCC 4.2.xcspec" </code></pre></li> <li><p>Change lines 41 and 42 from this:</p> <pre class="lang-bsh prettyprint-override"><code>ShowInCompilerSelectionPopup = NO; IsNoLongerSupported = YES; </code></pre> <p>To This:</p> <pre class="lang-bsh prettyprint-override"><code>ShowInCompilerSelectionPopup = YES; IsNoLongerSupported = NO; </code></pre></li> </ol></li> <li><p>Link the gcc 4.2 binary to the location that Xcode expects:</p> <pre class="lang-bsh prettyprint-override"><code>sudo ln -s /opt/local/bin/gcc-apple-4.2 /Developer/usr/bin/gcc-4.2 sudo ln -s /opt/local/bin/g++-apple-4.2 /Developer/usr/bin/g++-4.2 </code></pre></li> </ol> <p>I explained the problem and workaround in <a href="http://seandenigris.com/blog/?p=931" rel="nofollow">this blog post</a>, which condenses the information I found. Feel free to comment.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload