<div dir="ltr"><p dir="ltr">The <i>GNU's</i> C++ compiler name is g++. Clang's C++ compiler name is clang++ for example. (Microsoft Visual C++'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's cpp will compile… I believe Fortran, or even Java, if the proper alternative GNU compiler present. I'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's C++ compiler. Now it is only a symlink to clang++.</p>
<div class="gmail_quote">2013.12.13. 7:54 ezt írta ("Davor Cubranic" <<a href="mailto:cubranic@stat.ubc.ca" target="_blank">cubranic@stat.ubc.ca</a>>):<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's name is g++. Cpp is the macro preprocessor. (And what this has to do with MacPorts, I've no idea.)<br>
<br>
Davor<br>
<br>
> On Dec 9, 2013, at 9:25 AM, Gmail <<a href="mailto:yangzf01@gmail.com" target="_blank">yangzf01@gmail.com</a>> wrote:<br>
><br>
> Hi Chris<br>
> Yes, it is fortran code. I am not sure why it uses CPP to compile it.