From owner-svn-doc-all@FreeBSD.ORG Mon Jun 30 04:28:52 2014 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8ECBE799; Mon, 30 Jun 2014 04:28:52 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DBB528CF; Mon, 30 Jun 2014 04:28:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5U4SqsL039803; Mon, 30 Jun 2014 04:28:52 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5U4SqHk039802; Mon, 30 Jun 2014 04:28:52 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201406300428.s5U4SqHk039802@svn.freebsd.org> From: Eitan Adler Date: Mon, 30 Jun 2014 04:28:52 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r45175 - head/en_US.ISO8859-1/books/developers-handbook/tools X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2014 04:28:52 -0000 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 @@ This will link the math library functions into foobar. - If you are compiling C++ code, you need to add - , or if - you are using FreeBSD 2.2 or later, to the command line - argument to link the C++ library functions. - Alternatively, you can run c++ instead - of cc, which does this for you. - c++ can also be invoked as - g++ on FreeBSD. + If you are compiling C++ code, use + c++. c++ can also be + invoked as clang++ on &os;. - &prompt.user; cc -o foobar foobar.cc -lg++ For FreeBSD 2.1.6 and earlier -&prompt.user; cc -o foobar foobar.cc -lstdc++ For FreeBSD 2.2 and later -&prompt.user; c++ -o foobar foobar.cc - + &prompt.user; c++ -o foobar foobar.cc - Each of these will both produce an executable + This will both produce an executable foobar from the C++ source file - foobar.cc. Note that, on &unix; - systems, C++ source files traditionally end in - .C, .cxx or - .cc, rather than the - &ms-dos; style - .cpp (which was already used for - something else). gcc 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 - .cpp with impunity! + foobar.cc.