title: Integrate GCC 4.4 with NetBeans on a Mac
body: <p>I've got <strong>NetBeans 6.9</strong> installed on a Mac OS Snow Leopard. Also, I installed <strong>gcc 4.4</strong> through MacPorts in order to experiment with C++0x.  I believe, by default NetBeans uses the standard Apple <strong>gcc 4.2</strong> compiler which is invoked through a <code>g++</code> symlink found in <code>/usr/bin</code>.</p>
  
  <p>My question is: how can I still use the new compiler?</p>
  
  <p>I tried creating a new <em>Tool Collection</em> in NetBeans by specifying the default directory to <code>/opt/local/bin</code> which is where gcc 4.4 is present. But this caused error messages, i.e. <strong>No compiler sets were found...</strong>. I also tried modifying the existing <strong>GNU</strong> Tool Collection by selectively specifying the C++ Compiler command as <code>/opt/local/bin/x86_64-apple-darwin10-g++-mp-4.4</code>. However, this caused build errors which I didn't even understand. Any ideas appreciated.</p>