aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2006-07-05 22:17:28 +0000
committerMike Stump <mrs@gcc.gnu.org>2006-07-05 22:17:28 +0000
commit63b08b6060e882428b1a7214ab40cdfb3d65c025 (patch)
tree9e841ca7137064e0a38d93d75131ee714e0bb67c /gcc/doc
parent03b1c2062ba9877841bc9b8553cf069bed7e33bf (diff)
downloadgcc-63b08b6060e882428b1a7214ab40cdfb3d65c025.zip
gcc-63b08b6060e882428b1a7214ab40cdfb3d65c025.tar.gz
gcc-63b08b6060e882428b1a7214ab40cdfb3d65c025.tar.bz2
* doc/invoke.texi (Invoking G++): Clarify prose for g++.
From-SVN: r115211
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 0c5e382..a4896a5 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1089,15 +1089,14 @@ with the name @command{gcc}).
@findex g++
@findex c++
-However, C++ programs often require class libraries as well as a
-compiler that understands the C++ language---and under some
-circumstances, you might want to compile programs or header files from
-standard input, or otherwise without a suffix that flags them as C++
-programs. You might also like to precompile a C header file with a
-@samp{.h} extension to be used in C++ compilations. @command{g++} is a
-program that calls GCC with the default language set to C++, and
-automatically specifies linking against the C++ library. On many
-systems, @command{g++} is also installed with the name @command{c++}.
+However, the use of @command{gcc} does not add the C++ library.
+@command{g++} is a program that calls GCC and treats @samp{.c},
+@samp{.h} and @samp{.i} files as C++ source files instead of C source
+files unless @option{-x} is used, and automatically specifies linking
+against the C++ library. This is also useful when precompiling a C
+header file with a @samp{.h} extension for use in C++ compilations.
+On many systems, @command{g++} is also installed with the name
+@command{c++}.
@cindex invoking @command{g++}
When you compile C++ programs, you may specify many of the same