<div dir="ltr"><p dir="ltr">The <i>GNU&#39;s</i> C++ compiler name is g++. Clang&#39;s C++ compiler name is clang++ for example. (Microsoft Visual C++&#39;s compiler name is lc.exe.) ‘c++’ usually a symlink on the compiler the system primarly built with. (or something like that.)</p>

<p>the cpp (as a command) usually used to compile C codes, and it is heavily used by MacPorts (where the program was written in C) since MacPorts compiles the ports from source right there, on your Mac. One could use c++ (or g++) instead of cpp for C.</p>

<p>However, the GNU compiler is also capable to select the proper language and use the proper tools for compillation, so GNU&#39;s cpp will compile… I believe Fortran, or even Java, if the proper alternative GNU compiler present. I&#39;ve never used this capability this extremely though, and not aware wether other compilers are capable to do so.</p>

<p>Xcode used to ship GNU&#39;s C++ compiler. Now it is only a symlink to clang++.</p>
<div class="gmail_quote">2013.12.13. 7:54 ezt írta (&quot;Davor Cubranic&quot; &lt;<a href="mailto:cubranic@stat.ubc.ca" target="_blank">cubranic@stat.ubc.ca</a>&gt;):<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


C++ compiler&#39;s name is g++. Cpp is the macro preprocessor. (And what this has to do with MacPorts, I&#39;ve no idea.)<br>
<br>
Davor<br>
<br>
&gt; On Dec 9, 2013, at 9:25 AM, Gmail &lt;<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Chris<br>
&gt; Yes, it is fortran code. I am not sure why it uses CPP to compile it.