title: OSX - replace gcc version 4.2.1 with 4.9 installed via Homebrew
body: <p>This has been plaguing me for awhile now. I am trying to compile a huge C++ file (I know it works as I it works fine on my Arch Linux computer at work). When I checked my GCC version on my mac It returns the following</p>
  
  <pre><code>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
  Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  Target: x86_64-apple-darwin14.1.0
  Thread model: posix
  </code></pre>
  
  <p>I have also installed the most recent GCC version using Homebrew with</p>
  
  <pre><code>brew install gcc49
  </code></pre>
  
  <p>My question now is how do I apply that newly installed GCC version to be the default version that the terminal uses?</p>
  
  <p>I am also aware that when you use homebrew to isntall gcc it names it gcc-49 so that there is no confusion between packages.</p>
  
  <p>I have no idea how to replace the 4.2.1 version that comes with XCode with the 4.9 version I have installed.</p>
  
  <p>Thanks</p>
  
  <p>Edit:
  Switched to my mac to get the full return statement of gcc --version</p>
  
  <p>Edit 2: 
  My end game here is to be able to navigate to the directory and be able to type</p>
  
  <pre><code>make
  sudo make install
  </code></pre>
  
  <p>to install the daemon that has been made. Right now that returns tons of errors with random packages and the Standard Library</p>