From 0cd36ffb6bd821ea32f892fb9b96b3a0f8faf967 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Mon, 30 Jun 2014 04:28:51 +0000 Subject: Eliminate some history from the documentation. --- .../books/developers-handbook/tools/chapter.xml | 30 +++++----------------- 1 file changed, 6 insertions(+), 24 deletions(-) (limited to 'en_US.ISO8859-1/books/developers-handbook') diff --git a/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml b/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml index 578891622d..c578917eb3 100644 --- a/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml +++ b/en_US.ISO8859-1/books/developers-handbook/tools/chapter.xml @@ -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. -- cgit v1.2.3