Netbeans 8.1 (for C/C++) cannot find my compiler (gcc-6.0.0 dev version)
<p>I am totally new to C/C++ IDEs under mac os x, thus to netbeans. I downloaded the C/C++ dmg, under max os x 10.10.5. </p>

<p>I have built <code>gcc-6.0.0</code> (dev version) from source and it works like a charm on the command line. I intend to use it with netbeans, so in netbeans preference, I created a new "tool collection" called "gcc-6.0.0" that I filled inspiring from the two default already available (called GNU and clang) after installation of netbeans. I've filled as follows : </p>

<ul>
<li>Base directory : <code>/usr/local/GNU/gcc-6.0.0</code></li>
<li>C Compiler : <code>/usr/local/GNU/gcc-6.0.0/bin/gcc-6.0.0</code></li>
<li>C++ Compiler : <code>/usr/local/GNU/gcc-6.0.0/bin/g++-6.0.0</code></li>
<li>Fortran Compiler : <code>/usr/local/GNU/gcc-6.0.0/bin/gfortran-6.0.0</code></li>
<li>Assembler : <code>/usr/bin/as</code></li>
<li>Make command : <code>/usr/local/GNU/make-4.1/bin/make-4.1</code> </li>
<li>Debugger command : I left it empty</li>
<li>QMake command : I left it empty</li>
<li>CMake command : <code>/usr/local/lvm/cmake-3.3.2/bin/cmake</code> </li>
</ul>

<p>Note that my gcc commands (gcc, g++ and gfortran do have prefixes, it is not an error.) As I have built make and Cmake from source, I filled paths to their respective binaries also. </p>

<p>Note that in the add new tool collection windows, for "base directory" I have put : <code>/usr/local/GNU/gcc-6.0.0</code> and was told (by a red message a the bottom of the new tool collection window) that "<strong>no compiler sets were found in the directory</strong> <code>/usr/local/GNU/gcc-6.0.0</code>'... Same message if I put <code>/usr/local/GNU/gcc-6.0.0/bin</code> instead... </p>

<p>Finally, I choose a welcome project template (for which I choose the newly created tool collection), and I build it, and have this console output : </p>

<pre><code>cd '/Users/XXXXXXX/Documents/Welcome_1' 
/usr/bin/make -f Makefile CONF=Debug 
"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf 
"/Applications/Xcode.app/Contents/Developer/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU_1-MacOSX/tmp14 
mkdir -p build/Debug/GNU_1-MacOSX 
rm -f "build/Debug/GNU_1-MacOSX/welcome.o.d" 
g++-6.0.0 -c -g -MMD -MP -MF "build/Debug/GNU_1-MacOSX/welcome.o.d" -o build/Debug/GNU_1-MacOSX/welcome.o welcome.cc 
/bin/sh: g++-6.0.0: command not found 
make[2]: *** [build/Debug/GNU_1-MacOSX/welcome.o] Error 127 
make[1]: *** [.build-conf] Error 2 
make: *** [.build-impl] Error 2 

BUILD FAILED (exit value 2, total time: 221ms) 
</code></pre>

<p>How come <code>/bin/sh: g++-6.0.0: command not found</code> when I don't have any issued like this one on the command line, and when I gave paths to <code>g++-6.0.0</code> in the new tool collection windows ?</p>

<p>How can I achieve what I intended to do, that is, using my gcc-6.0.0 gcc/g++ compiler with netbeans ? </p>

<p>Thx in advance !</p>