GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
cpp(1) GNU Tools cpp(1)

cpp - GNU-C ?ߴ??Υ????ѥ????ץ??ץ????å?

cpp
[-$] [-Apredicate[(value)]] [-C] [-Dname[=definition]] [-dD] [-dM] [-I directory] [-H] [-I-] [-imacros file] [-include file] [-idirafter dir] [-iprefix prefix ] [-iwithprefix dir ] [-lang-c] [-lang-c++] [-lang-objc] [-lang-objc++] [-lint] [-M [-MG]] [-MM [-MG]] [-MD file ] [-MMD file ] [-nostdinc] [-nostdinc++] [-P] [-pedantic] [-pedantic-errors] [-traditional] [-trigraphs] [-Uname] [-undef] [-Wtrigraphs] [-Wcomment] [-Wall] [-Wtraditional]
[infile|-] [outfile|-]

C ?ץ??ץ????å??ϡ? ?ºݤΥ????ѥ????????˥ץ??????????Ѵ????뤿???? C ?????ѥ??餫?鼫ưŪ?????Ѥ????? ?ޥ????ץ????å??Ǥ??? Ĺ?????Ҥ???ά???ƥޥ????Ȥ??????????뤳?Ȥ??Ǥ??뤿?ᡢ ?ޥ????ץ????å??ȸƤФ??ޤ???

C ?ץ??ץ????å??ϡ??ʲ???4?Ĥε?ǽ???󶡤??ޤ???

?إå??ե????????ɤ߹??ߤޤ??? ?????? ?ץ??????????Ȥ߹??ޤ??? (C ??????)?????????ä??ե??????Ǥ???
C ??????Ǥ?դ???ʬ?ξ?ά???Ȥ??? ?ޥ?????????????C ?ץ??ץ????å????ץ??????????????ƤΥޥ????? ???????????֤??????ޤ???
????ʸ?ν????򤷤ޤ??????ѤΥץ??ץ????å????ޥ??ɤ??Ѥ??ơ? ?????????ʾ????ˤ??????äƥץ????????ΰ??????ޤ᤿?????????????Ǥ??ޤ???
???ֹ????????򤷤ޤ??? ???????ե??????? ?????ѥ??뤵?줿???֥ե??????Ȥ??Ȥ߹??碌?????ƥ????󥸤????ꤹ???ץ????????? ?Ѥ??????硢 ?????ѥ????˥??ꥸ?ʥ??Υ??????β????ܤǤ??뤫???Τ餻?뤿???Ρ? ???ֹ??????Υץ??ץ????å????ޥ??ɤ????ѤǤ??ޤ???

C ?ץ??ץ????å??ϡ????Υ????ץ??????Ȥˤ??äƺ٤?????ʬ?˰㤤?? ?????Ĥ??????ޤ???GNU C ?ץ??ץ????å??δ????ʥɥ????????Ȥϡ? info ?ե??????? `cpp.info', ?⤷???ϡ??ޥ˥奢???? The C Preprocessor?򻲾Ȥ??Ʋ??????? ?????????? `cpp.texinfo'?????????????ޤ???GNU C ?ץ??ץ????å??? ANSI Standard C ?Υ????ѥ??åȤ? ?ʤäƤ??ޤ???

ANSI Standard C ?Ǥϡ????? C ?ץ????????ǰ???Ū???Ѥ??????Ƥ???¿???? (̵????)??¤??ǧ???????Ƥ??ޤ????? ???????ߴ????ϥ桼???ˤȤäƤ????ؤǤ??ꡢ???Τ??? GNU C preprocessor ?ǤϤ??ε??Ҥ??ǥե????ȤǼ????դ????褦?˺??????Ƥ??ޤ??? ??̩?ˤ????С? ANSI Standard C ?ˤ??뤿???ˤ? ???ץ??????Ȥ??? `-trigraphs ', `-undef', `-pedantic'???Ĥ??ʤ????Фʤ??ޤ????? ???????и?§???顢??̩?? ANSI Standard C ?ˤ??碌?Ƥ????????????? ?Ԥʤ??Ȼپ??Τ??????礬¿?????Ȥ??狼?äƤ??ޤ???

?ۤȤ??ɤξ????ϡ?C ?ץ??ץ????å???????Ū?˼¹Ԥ???ɬ?פϤ????ޤ????? C ?????ѥ??餬??ưŪ?˼¹Ԥ??Ƥ????뤫???Ǥ??????????ʤ??顢 ????Ū?˥ץ??ץ????å????¹Ԥ????Τ?ͭ???ʤ??Ȥ??ġ??ˤϤ????ޤ???

C ?ץ??ץ????å? ?ϡ??????Ȥ??? infile ?? outfile?? 2 ?ĤΥե?????̾?????Ԥ??ޤ??? ?ץ??ץ????å??? `#include'?ǻ??ꤷ???ե??????Ȱ????? infile ???ɤ߹??ߤޤ??? ???ϥե????????Ȥ߹??碌?Ǻ????줿???Ϥϡ? ???? outfile?˽񤫤??ޤ???

infile ?? outfile ?λ????? `-'?????Ѥ??뤳?Ȥ??Ǥ??ޤ???infile ?? `-' ?Ǥ????? ɸ?????Ϥ????ǡ??????ɤߡ?outfile ?? `-' ?Ǥ?????ɸ?????Ϥط??̤??񤭤ޤ????⤷ outfile ?⤷????ξ???Υե?????̾????ά???줿???硢 ??ά???줿?ե???????????????ɸ?????Ϥ?ɸ?????Ϥ??Ȥ????ޤ???

?ʲ??? C ?ץ??ץ????å????????դ??륪?ץ??????ΰ????Ǥ??? ???????Υ??ץ??????ϡ? ?ץ??ץ????å????????ѥ??餫?鵯ư?????Ƥ????????ˤ? ??ưŪ?˰????Ϥ??????Τǡ? C ?ץ????????򥳥??ѥ??뤹???ݤˤ????ꤹ?뤳?Ȥ??Ǥ??ޤ???
-P
`#'-???ֹ? ?Ȥ??????ֹ????????ץ??ץ????å??ν??Ϥ˴ޤ??ޤ????? ?????ϡ?C ?ʳ??θ????ǹ??ֹ????󤬴ޤޤ??Ƥ????ȥ??顼?򵯤????????? ??????????????ͭ?ѤǤ??礦??
-C
???????Ȥ??????????????Τޤ޽??ϥե??????˴ޤ??ޤ??? ?ޥ????ƤӽФ??ΰ????˸????륳?????Ȥϥޥ????ƤӽФ???Ÿ?????˥??ԡ??????ޤ???
-traditional
ANSI ?ǤϤʤ??????????? C ??ʸˡ?Ȥ??Ʋ??ᤷ?ޤ???
-trigraphs
ANSIɸ???Υȥꥰ????(trigraph)??ʸ?????????ޤ??? ?????? ANSI C ?? 1 ʸ????ɽ???????????????줿 `??' ?ǻϤޤ? 3 ʸ?????¤ӤǤ????㤨?С?`??/' ?? `\' ??ɽ???ޤ??Τǡ?`'??/n'' ?ϲ???ʸ????ʸ???????Ȥʤ??ޤ??? ??̩?˸????С?GNU C ?ץ??ץ????å??? `-trigraphs' ???ץ??????? ANSI C ɸ?????????ˤϥ??ݡ??Ȥ??ޤ????? ???????̤Υ桼???ʤ??Ф??ΰ㤤?˵??Ť????ϵ??Ǥ??礦??

?ȥꥰ???դˤĤ??ơ??????ʾ??Τꤿ???Ȥϻפ??ʤ??Ǥ????

-pedantic
`#else' ?? `#endif' ?θ??˥??????Ȱʳ??Υƥ????Ȥ??Ĥ??Ȥ??ä??????ˡ? ANSI C ɸ???ǵ??????????ٹ??????Ϥ??ޤ???
-pedantic-errors
`-pedantic' ?˻??Ƥ??ޤ??????ٹ??ǤϤʤ????顼?ˤ??ޤ???
-Wtrigraphs
?ȥꥰ???դ??????ȷٹ??????Ϥ??ޤ?(?????????ȥꥰ???դν????ϹԤ??ޤ?)??
-Wcomment
-Wcomments
???????ȳ??ϥ??????󥹤Ǥ??? `/*' ??????????????¸?ߤ????ʤ??зٹ???ȯ?????ޤ? (ξ??????Ʊ?????̤??????ޤ?)??
-Wall
`-Wtrigraphs' ?? `-Wcomment' (?????? `-Wtraditional' ?Ͻ???) ?????ꤷ???Τ?Ʊ???Ǥ???
-Wtraditional
ANSI ???????ɤ? C ?Ȥǰۤʤ뿶???񤤤??Ȥ빽ʸ???и??????????? ?ٹ???ȯ???ޤ???
-I directory
?ǥ??쥯?ȥ? directory ???إå??ե??????򸡺??????ǥ??쥯?ȥ??ꥹ?Ȥ????????ɲä??ޤ??? ???Υ??ץ??????ϡ????ꤷ???ǥ??쥯?ȥ꤬ ?????ƥ??Υإå??ե????뤬??Ǽ?????Ƥ????ǥ??쥯?ȥ??????????? ???????????Τǡ??桼?????Ȥκ????????С????????? ?????ƥब?󶡤????إå??ե??????????񤭤????뤳?Ȥ??Ǥ??ޤ??? 1 ?İʾ??? `-I' ???ץ??????????Ѥ??????硢?ǥ??쥯?ȥ??Ϻ????鱦?ν??֤Ǹ??????졢 ɸ???Υ????ƥ??إå??ե??????Ϥ??θ??ˤʤ??ޤ???
-I-
`-I-' ???ץ??????????????˻??ꤵ?줿 `-I ' ???ץ???????Ϳ?????줿?ǥ??쥯?ȥ??ϡ?`#include "file"' ?Υ??󥯥롼??ʸ?ξ????ˤΤ߸????????ޤ???`#include <file>' ?Ǥϸ????????ޤ?????

???ץ????? `-I-' ?θ??Υ??ץ????? `-I' ???ɲäΥǥ??쥯?ȥ꤬???ꤵ?줿???硢???????Υǥ??쥯?ȥ??? ???Ƥ? `#include' ʸ?Ǹ????????ޤ???

?դ??ä??Ƹ????ʤ??С?`-I-' ???ץ??????????ꤹ???ȡ????????ȥǥ??쥯?ȥ??? `#include "file"' ʸ???Ф????ǽ??θ????ǥ??쥯?ȥ??ǤϤʤ??ʤ??ޤ??? ?????椨?????????ȥǥ??쥯?ȥ???????Ū?? `-I.' ?Ȥ??ƻ??ꤵ?줿?????ˤΤ߸????????뤳?Ȥˤʤ??ޤ??? `-I-' ?? `-I.' ???????Ȥ????ꤹ?뤳?Ȥǡ??ɤΥǥ??쥯?ȥ꤬???????ȥǥ??쥯?ȥ? ?????ˡ????뤤?ϸ??˸????????뤫????̩?˻??ꤹ?뤳?Ȥ??Ǥ??ޤ???

-nostdinc
?إå??ե??????θ?????ɸ?ॷ???ƥ??ǥ??쥯?ȥ????Ѥ??ޤ?????`-I' ???ץ??????ǻ??ꤷ???ǥ??쥯?ȥ?(?ȡ??⤷Ŭ?ڤǤ????ʤ??? ???????ȥǥ??쥯?ȥ?)???????????ޤ???
-nostdinc++
?إå??ե??????θ????? C++ ???ͤ?ɸ???ǥ??쥯?ȥ????Ѥ??ޤ????? ????????¾??ɸ???ǥ??쥯?ȥ??ϸ??????ޤ??? (???Υ??ץ??????? libg++ ?ι??ۻ????Ѥ??????ޤ???)
-D name
name ?????????Υޥ????Ȥ??ơ?`1' ?????????ޤ???
-D name=definition
name ???ޥ????Ȥ???definition ?????????ޤ???definition ?????Ƥ????¤Ϥ????ޤ??????ץ??ץ????å??򥷥????䥷?????????????? ?ץ??????फ?鵯ư???Ƥ??????硢????????ʸˡ????̣?????ĥ??ڡ??? ?ʤɤ?ʸ?????ݸ?뤿?ᡢ???Υ??????Υ???????ʸˡ?????Ѥ???ɬ?פ? ?????ޤ????⤷??1 ?Ĥ? name ???Ф???ʣ???? `-D' ?????ꤷ???ʤ??С????äȤⱦ¦????????ͭ???Ȥʤ??ޤ???
-U namename
?????????ޤ?????Ʊ???? name ???Ф??? `-U' ?? `-D' ???????????ꤵ?줿???硢`-U' ?? `-D' ??ͥ?褷?? name ???????????ޤ?????
-undef
??ɸ???Υޥ????????????????ޤ?????
-A name(value)
(#assert ???ޥ??ɤ?Ʊ????ˡ??) ?Ҹ? name ?˥ȡ??????ꥹ?? value ?򥢥????Ȥ??ޤ??????????Υ??ޥ??ɥ饤?????Ǥϳ??̤? ?????????פ????ʤꥯ?????Ȥ??뤳?Ȥ?˺???ʤ??Dz???????

???????Υ??????????????Ƥ??????ä??Τˡ?`-A-' ???Ȥ??ޤ????????Ϥޤ??????????Υޥ??????Ƥ?̵???ˤ??ޤ???

-dM
?ץ??ץ????å??η??̤????Ϥ??????????ˡ? ?ץ??ץ????å??μ¹????????????줿?????????Τ??Τ??ޤ????ƤΥޥ????? `#define' ???ޥ??ɤΥꥹ?Ȥ????Ϥ??ޤ??? ?????ϡ????Ѥ??Ƥ????ץ??ץ????å??Τ??ΥС????????ǡ? ?ɤ??ʥޥ????????????Ǥ??뤫???Τ???ˡ???󶡤??Ƥ????ޤ??? ?????ˤϡ????Υե????? `foo.h' ?򤳤Υ??ץ??????ǽ??????Ƥߤ??Ф褤?ΤǤ???

touch foo.h; cpp -dM foo.h

?Ϥ??٤Ƥδ??????ޥ??????ͤ򸫤??Ƥ??????Ǥ??礦??

-dD
`-dM' ?˻??Ƥ??ޤ?????2 ?Ĥ??????????????ޤ????????ϴ??????ޥ????? ???????ޤ??????ޤ???`#define' ???ޥ??ɤȥץ??ץ????????̤????? ?????Ϥ??ޤ??????????ν??Ϥ?ξ???Ȥ?ɸ?????Ϥ˹Ԥ????ޤ???
-M [-MG]
?ץ??ץ??????η??̤????Ϥ??????????ˡ?main ?Υ??????ե??????ΰ?¸???? ???Ҥ???make ??§?????Ϥ??ޤ??? ?ץ??ץ????å??ϥ??????ե??????Υ??֥??????ȥե?????̾?????????? ???Τ??٤ƤΥ??󥯥롼?ɥե?????̾????????make ??§?????Ϥ??ޤ???ʣ???Υ??󥯥롼?ɥե????뤬???????硢??§??`\'-???Ԥ?ʣ???Ԥ˶??ڤ????ޤ???

`-MG' ?ϡ????Ĥ??????ʤ??ä??إå??ե???????(?????ѥ???????????)???????졢 ???????ե???????Ʊ???ǥ??쥯?ȥ???¸?ߤ??????ΤȤ??ư????ޤ???`-M' ?ȶ??˻??ꤷ?ʤ????Фʤ??ޤ?????

???ε?ǽ?ϼ?ưŪ?? Makefile ?򹹿??????Τ˻Ȥ??ޤ???

-MM [-MG]
?????? `-M' ?˻??Ƥ??ޤ?????`#include "file"' ?ǥ??󥯥롼?ɤ??????ե??????Τߤ򰷤??????ۤʤ??ޤ???`#include <file>' ?ǥ??󥯥롼?ɤ????륷???ƥ??إå??ե???????̵?뤵???ޤ???
-MD file
?????? `-M' ?˻??Ƥ??ޤ???????¸??????`file' ?˽񤭽Ф????ޤ???—`-MD' ?????ꤷ???ե??????ν????⤳???˲ä??ƹԤ??졢`-M' ?Τ褦???̾??ν????????????뤳?ȤϤ????ޤ?????

gcc ???¹Ԥ????????? `file' ?????????ꤷ?ƤϤ????ޤ?????gcc ?ϡ????ϥե?????̾???????? `.c' ?? `.d ' ???֤????????ե?????̾?????Ϥ??Ѥ??뤫???Ǥ???

Mach ?Ǥϡ?`make' ???ޥ??ɤ??????ʤ褦??ʣ???Υե??????? 1 ?Ĥΰ?¸??§?ե??????? ?ޤȤ????桼?ƥ????ƥ? md ?????ѤǤ??ޤ???

-MMD file
`-MD' ?˻??Ƥ??ޤ??????桼???Υإå??ե??????Τߤ򰷤????????ƥ??إå??? ̵?뤹???????ۤʤ??ޤ???
-H
?̾???ư???˲ä??ơ? ???Ѥ??줿?إå??ե??????Υե?????̾?????Ϥ??ޤ???
-imacros file
?ե????? file ?????ϤȤ??ƽ??????ޤ????? ɸ???????ϥե??????????????????ˤ??η??̤ν??Ϥ??˴????ޤ??? file ?ˤ??ä??????????????ϤϼΤƤ????뤿?ᡢ`-imacros file' ?ν??????̤αƶ??ϡ?file ???˵??Ҥ??줿?ޥ??????ᥤ???????ϥե????????ǻ??Ѳ?ǽ?ˤʤ뤳?Ȥ????Ǥ??? ?ץ??ץ????å??ϡ?`-imacros file' ?????????????ˡ? ???ޥ??ɥ饤?󤫤?Ϳ?????줿???Ƥ? `-D' ?? `-U' ???ץ???????ɾ?????ޤ???
-include file
?ե????? file ????ɸ???????ϥե??????????˽??????????η??̽??Ϥ򥤥󥯥롼?ɤ??ޤ???
-idirafter dir
?ǥ??쥯?ȥ? dir ???? 2 ???󥯥롼?ɥѥ??˲ä??ޤ????? 2 ???󥯥롼?ɥѥ????? ?ǥ??쥯?ȥ??ϡ??ᥤ?󥤥󥯥롼?ɥѥ? (???ץ????? `-I' ?ˤ??ä??ɲä????ޤ?) ???˥إå??ե???????õ???????? ȯ???Ǥ??ʤ??ä??????˸????????ޤ???
-iprefix prefix
prefix ?򡢤??θ???³?? `-iwithprefix' ???ץ??????ѤΥץ??ե??å????Ȥ??ƻ??Ѥ??ޤ???
-iwithprefix dir
?ǥ??쥯?ȥ????? 2 ???󥯥롼?ɥѥ????ɲä??ޤ????ǥ??쥯?ȥ?̾?? prefix ?? dir ??Ϣ?뤹?뤳?Ȥˤ??ä????????ޤ????????? prefix ?? `-iprefix' ???ץ??????ˤ??äƻ??ꤵ?줿???ΤǤ???
-lang-c
-lang-c++
-lang-objc
-lang-objc++
???????θ????????ꤷ?ޤ???`-lang-c++' ?ϡ??ץ??ץ????å??? C++ ?Υ???????ʸ?ȡ?C++ ?Ѥ??ɲä? ?ǥե????ȥ??󥯥롼?ɥǥ??쥯?ȥ?????????????`-lang-objc' ?ϡ?Objective C ?? `#import' ?ǥ??쥯?ƥ??֤????Ѳ?ǽ?ˤ??ޤ???`-lang-c' ??????Ū?ˤ??????ε?ǽ???ڤ?Υ???????ꤷ??`-lang-objc++' ???????????Ѳ?ǽ?ˤ??ޤ???

???????Υ??ץ??????ϥ????ѥ????ɥ饤?? gcc ?ˤ??ä??????????ޤ?????`gcc' ?Υ??ޥ??ɥ饤?󤫤??????Ϥ????ȤϤǤ??ޤ?????

-lint
???????????????????ޤ줿???ץ????????????å? lint ?Υ??ޥ??ɤ򸫤Ĥ??Ф??????????????? `#pragma lint' ?????????ߤޤ????㤨?С????????? `/* NOTREACHED */' ?? `#pragma lint NOTREACHED' ?ˤʤ??ޤ???

???Υ??ץ???????ľ?? cpp ???ƤӽФ??????ˤΤ߻Ȥ??ޤ???gcc ?ϡ????ޥ??ɥ饤?󤫤餳?Υ??ץ????????????Ϥ??ޤ?????

-$
???̻????Ǥ? `$' ?λ??Ѥ??ػߤ??ޤ??? ?????ϡ?ɸ?ब???????????????ϡ?C ɸ???ؤθ?̩?ʽ????Τ????ˤ????ޤ?????

?ܥ??ץ??????ϡ? cpp ??ľ?ܸƤ֤Ȥ??Τ߻??Ѳ?ǽ?Ǥ??? gcc ?ϥ??ޥ??ɹԤ??餳?????Ϥ??ޤ?????

info; The C Preprocessor, Richard M. Stallman. ???Υ????ȥ? `cpp'
gcc(1); info; Using and Porting GNU CC (for version 2.0), Richard M. Stallman. ???Υ????ȥ? `gcc'

Copyright (c) 1991, 1992, 1993 Free Software Foundation, Inc.

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English.

April 30, 1993 FreeBSD

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.