GCCSection: GNU Tools(1)GCCSection: GNU Tools(1)Updated: 2003/12/05IndexReturn to Main ,g++-GNU工程的C和C++编译器(egcs-)总览(SYNOPSIS)gcc[option|filename ]...g++[option|filename ]...警告(WARNING)本手册页内容摘自GNU C编译器的完整文档,,,请查对Info文件,,,象更新Info文件同时更新man手册,,,请查阅Info文件`gcc'(forversion ) ()手册..(DESCRIPTION)C和C++:预处理(preprocessing),pilation),汇编(assembly)和连接(linking).源文件后缀名标识源文件的语言,但是对编译器来说,后缀名控制着缺省设定:gcc认为预处理后的文件(.i)是C文件,++认为预处理后的文件(.i)是C++文件,并且设定C++:.cC源程序;预处理,编译,++源程序;预处理,编译,C++源程序;预处理,编译,++源程序;预处理,编译,-C源程序;预处理,编译,;编译,++文件;编译,;;预处理,;通常不出现在命令行上其他后缀名的文件被传递给连接器(linker).通常包括:.o目标文件(Objectfile).a归档库文件(Archive file)除非使用了-c,-S,或-E选项(或者编译错误阻止了完整的过程),,,-l库文件,无法识别的文件名()(OPTIONS)选项必须分立给出:`-dr'完全不同于`-d-r '.大多数`-f'和`-W'选项有两个相反的格式:-fname和-fno-name (或-Wname和-Wno-name).,按类型分组,(Overall Option)-c-S-E-o file-pipe-v-xlanguage语言选项(LanguageOption)-ansi-fall-virtual-fcond-mismatch-fdollars-in-identifiers-fenum-int-equiv-fexternal-templates-fno-asm-fno-builtin-fhosted-fno-hosted-ffreestanding-fno-freestanding-fno-strict-prototype-fsigned-bitfields-fsigned-char-fthis-is-variable-funsigned-bitfields-funsigned-char-fwritable-strings-traditional-traditional-cpp-trigraphs警告选项(Warning Option)-fsyntax-only-pedantic-pedantic-errors-w-W-Wall-Waggregate-return-Wcast-align-Wcast-qual-Wchar-subscript-Wcomment-Wconversion-Wenum-clash-Werror-Wformat-Wid-clash-len-Wimplicit-Wimplicit-int-Wimplicit-function-declaration-Winline-Wlong-long-Wmain-Wmissing-prototypes-Wmissing-declarations-Wnested-externs-Wno-import-Wparentheses-Wpointer-arith-Wredundant-decls-Wreturn-type-Wshadow-Wstrict-prototypes-Wswitch-W
GCC 中文手册 来自淘豆网m.daumloan.com转载请标明出处.