📄 00000002.htm
字号:
Two `#pragma' directives are supported for GNU C++, to <BR> permit using the same header file for two purposes: as a <BR> definition of interfaces to a given object class, and as <BR> the full definition of the contents of that object class. <BR> <BR> #pragma interface <BR> (C++ only.) Use this directive in header files <BR> that define object classes, to save space in most <BR> of the object files that use those classes. Nor- <BR> mally, local copies of certain information (backup <BR> copies of inline member functions, debugging infor- <BR> mation, and the internal tables that implement vir- <BR> tual functions) must be kept in each object file <BR> that includes class definitions. You can use this <BR> pragma to avoid such duplication. When a header <BR> file containing `#pragma interface' is included in <BR> a compilation, this auxiliary information will not <BR> be generated (unless the main input source file it- <BR> self uses `#pragma implementation'). Instead, the <BR> object files will contain references to be resolved <BR> at link time. <BR> <BR> #pragma implementation <BR> <BR> #pragma implementation "objects.h" <BR> (C++ only.) Use this pragma in a main input file, <BR> when you want full output from included header <BR> files to be generated (and made globally visible). <BR> The included header file, in turn, should use <BR> `#pragma interface'. Backup copies of inline mem- <BR> ber functions, debugging information, and the in- <BR> ternal tables used to implement virtual functions <BR> are all generated in implementation files. <BR> <BR> If you use `#pragma implementation' with no argu- <BR> ment, it applies to an include file with the same <BR> basename as your source file; for example, in <BR> `allclass.cc', `#pragma implementation' by itself <BR> is equivalent to `#pragma implementation <BR> "allclass.h"'. Use the string argument if you want <BR> a single implementation file to include code from <BR> multiple header files. <BR> <BR> There is no way to split up the contents of a sin- <BR> gle header file into multiple implementation files. <BR> <BR>档案说明 <BR> file.c C source file <BR> file.h C header (preprocessor) file <BR> file.i 经前置处理过的 C source file <BR> file.C C++ source file <BR> file.cc C++ source file <BR> file.cxx C++ source file <BR> file.m Objective-C source file <BR> file.s assembly language file <BR> file.o object file <BR> a.out link edited output <BR> TMPDIR/cc* temporary files <BR> LIBDIR/cpp preprocessor <BR> LIBDIR/cc1 compiler for C <BR> LIBDIR/cc1plus compiler for C++ <BR> LIBDIR/collect linker front end needed on some machines <BR> LIBDIR/libgcc.a GCC subroutine library <BR> /lib/crt[01n].o start-up routine <BR> LIBDIR/ccrt0 additional start-up routine for C++ <BR> /lib/libc.a standard C library, 参阅 man page intro(3) <BR> /usr/include standard directory for #include files <BR> LIBDIR/include standard gcc directory for #include files <BR> LIBDIR/g++-include additional g++ directory for #include <BR> <BR> LIBDIR is usually /usr/local/lib/machine/version. <BR> TMPDIR comes from the environment variable TMPDIR (default <BR> /usr/tmp if available, else /tmp). <BR> <BR>参阅: <BR> 1.cpp(1), as(1), ld(1), gdb(1), adb(1), dbx(1), sdb(1)等 man page。 <BR> 2.`gcc', `cpp', `as', `ld', 及 `gdb' 的 info 文件。 <BR> 3.Using and Porting GNU CC (for version 2.0), <BR> Richard M.Stallman; <BR> 4.The C Preprocessor, <BR> Richard M. Stallman; <BR> 5.Debugging with GDB: the GNU Source-Level Debugger, <BR> Richard M.Stallman and Roland H. Pesch; <BR> 6.Using as: the GNU Assembler, <BR> Dean Elsner, Jay Fenlason & friends; <BR> 7.ld: the GNU linker, <BR> Steve Chamberlain and Roland Pesch. <BR> <BR>BUGS <BR> For instructions on reporting bugs, see the GCC manual. <BR> <BR>COPYING <BR> Copyright 1991, 1992, 1993 Free Software Foundation, Inc. <BR> <BR> Permission is granted to make and distribute verbatim <BR> copies of this manual provided the copyright notice and <BR> this permission notice are preserved on all copies. <BR> <BR> Permission is granted to copy and distribute modified ver- <BR> sions of this manual under the conditions for verbatim <BR> copying, provided that the entire resulting derived work <BR> is distributed under the terms of a permission notice <BR> identical to this one. <BR> <BR> Permission is granted to copy and distribute translations <BR> of this manual into another language, under the above con- <BR> ditions for modified versions, except that this permission <BR> notice may be included in translations approved by the <BR> Free Software Foundation instead of in the original En- <BR> glish. <BR> <BR>作者: <BR> 请参阅 GNU CC 手册中 GNU CC 的贡献者。 <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -