svn commit: r45175 - head/en_US.ISO8859-1/books/developers-handbook/tools

Eitan Adler eadler at FreeBSD.org
Mon Jun 30 04:28:52 UTC 2014


Author: eadler
Date: Mon Jun 30 04:28:51 2014
New Revision: 45175
URL: http://svnweb.freebsd.org/changeset/doc/45175

Log:
  Eliminate some history from the documentation.

Modified:
  head/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml

Modified: head/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml	Mon Jun 30 04:09:25 2014	(r45174)
+++ head/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml	Mon Jun 30 04:28:51 2014	(r45175)
@@ -618,35 +618,17 @@
 	  <para>This will link the math library functions into
 	    <filename>foobar</filename>.</para>
 
-	  <para>If you are compiling C++ code, you need to add
-	    <option>-lg++</option>, or <option>-lstdc++</option> if
-	    you are using FreeBSD 2.2 or later, to the command line
-	    argument to link the C++ library functions.
-	    Alternatively, you can run <command>c++</command> instead
-	    of <command>cc</command>, which does this for you.
-	    <command>c++</command> can also be invoked as
-	    <command>g++</command> on FreeBSD.</para>
+	  <para>If you are compiling C++ code, use
+	  <command>c++</command>.  <command>c++</command> can also be
+	  invoked as <command>clang++</command> on &os;.</para>
 
 	  <informalexample>
-	    <screen>&prompt.user; <userinput>cc -o foobar foobar.cc -lg++</userinput>     <lineannotation>For FreeBSD 2.1.6 and earlier</lineannotation>
-&prompt.user; <userinput>cc -o foobar foobar.cc -lstdc++</userinput>  <lineannotation>For FreeBSD 2.2 and later</lineannotation>
-&prompt.user; <userinput>c++ -o foobar foobar.cc</userinput>
-	    </screen>
+	    <screen>&prompt.user; <userinput>c++ -o foobar foobar.cc</userinput></screen>
 	  </informalexample>
 
-	  <para>Each of these will both produce an executable
+	  <para>This will both produce an executable
 	    <filename>foobar</filename> from the C++ source file
-	    <filename>foobar.cc</filename>.  Note that, on &unix;
-	    systems, C++ source files traditionally end in
-	    <filename>.C</filename>, <filename>.cxx</filename> or
-	    <filename>.cc</filename>, rather than the
-	    &ms-dos; style
-	    <filename>.cpp</filename> (which was already used for
-	    something else).  <command>gcc</command> used to rely on
-	    this to work out what kind of compiler to use on the
-	    source file; however, this restriction no longer applies,
-	    so you may now call your C++ files
-	    <filename>.cpp</filename> with impunity!</para>
+	    <filename>foobar.cc</filename>.
 	</listitem>
       </varlistentry>
     </variablelist>


More information about the svn-doc-head mailing list