Go to main content
- Oracle® Developer Studio 12.5: C++ User's Guide
- Document Information
- Using This Documentation
- Part I C++ Compiler
- Part II Writing C++ Programs
- Part III Libraries
- Part IV Appendixes
- Appendix A C++ Compiler Options
- A.1 How Option Information Is Organized
- A.2 Option Reference
- A.2.1 -#
- A.2.2 -###
- A.2.3 –abiopt=[mangle5|mangle6]
- A.2.4 –Bbinding
- A.2.5 –c
- A.2.6 –cg{89|92}
- A.2.7 –compat={5|g}
- A.2.8 +d
- A.2.9 –Dname[=def]
- A.2.10 –d{y|n}
- A.2.11 –dalign
- A.2.12 –dryrun
- A.2.13 –E
- A.2.14 –erroff[=t]
- A.2.15 –errtags[=a]
- A.2.16 –errwarn[=t]
- A.2.17 –fast
- A.2.18 –features=a[,a...]
- A.2.19 –fexceptions|–fno-exceptions
- A.2.20 –filt[=filter[,filter...]]
- A.2.21 –flags
- A.2.22 –fma[={none|fused}]
- A.2.23 –fnonstd
- A.2.24 –fns[={yes|no}]
- A.2.25 –fopenmp
- A.2.26 –fprecision=p
- A.2.27 –fround=r
- A.2.28 –fsimple[=n]
- A.2.29 –fstore
- A.2.30 –ftrap=t[,t...]
- A.2.31 –G
- A.2.32 –g
- A.2.33 –g[n]
- A.2.34 –H
- A.2.35 –h[ ]name
- A.2.36 –help
- A.2.37 –Ipathname
- A.2.38 –I–
- A.2.39 –i
- A.2.40 –include
filename
- A.2.41 –inline
- A.2.42 –instances=a
- A.2.43 –instlib=filename
- A.2.44 –KPIC
- A.2.45 –Kpic
- A.2.46 –keeptmp
- A.2.47 –Lpath
- A.2.48 –llib
- A.2.49 –libmieee
- A.2.50 –libmil
- A.2.51 –library=l[,l...]
- A.2.52 –m32|–m64
- A.2.53 –mc
- A.2.54 –misalign
- A.2.55 –mr[,string]
- A.2.56 –mt[={yes|no}]
- A.2.57 –native
- A.2.58 –noex
- A.2.59 –nofstore
- A.2.60 –nolib
- A.2.61 –nolibmil
- A.2.62 –norunpath
- A.2.63 –O
- A.2.64 –Olevel
- A.2.65 –o
filename
- A.2.66 +p
- A.2.67 –P
- A.2.68 –p
- A.2.69 –pedantic{=[yes|no]}
- A.2.70 –pentium
- A.2.71 –pg
- A.2.72 –PIC
- A.2.73 –pic
- A.2.74 –preserve_argvalues[=simple|none]
- A.2.75 –pta
- A.2.76 –ptipath
- A.2.77 –pto
- A.2.78 –ptv
- A.2.79 –Qoption
phase option[,option…]
- A.2.80 –qoption
phase option
- A.2.81 –qp
- A.2.82 –Qproduce
sourcetype
- A.2.83 –qproduce
sourcetype
- A.2.84 –Rpathname[:pathname…]
- A.2.85 –S
- A.2.86 –s
- A.2.87 –staticlib=l[,l...]
- A.2.88 –std=v
- A.2.89 –sync_stdio=[yes|no]
- A.2.90 –temp=path
- A.2.91 –template=opt[,opt…]
- A.2.92 –time
- A.2.93 –traceback[={%none|common|signals_list}]
- A.2.94 –Uname
- A.2.95 –unroll=n
- A.2.96 –V
- A.2.97 –v
- A.2.98 –verbose=v[,v…]
- A.2.99 –Wc,arg
- A.2.100 +w
- A.2.101 +w2
- A.2.102 –w
- A.2.103 –Xlinker
arg
- A.2.104 –Xm
- A.2.105 –xaddr32
- A.2.106 –xalias_level[=n]
- A.2.107 –xanalyze={code|%none}
- A.2.108 –xannotate[=yes|no]
- A.2.109 –xar
- A.2.110 –xarch=isa
- A.2.111 -xatomic=a
- A.2.112 -xautopar
- A.2.113 -xbinopt={prepare|off}
- A.2.114 -xbuiltin[={%all|%default|%none}]
- A.2.115 –xcache=c
- A.2.116 -xchar[=o]
- A.2.117 -xcheck[=i[,i]]
- A.2.118 -xchip=c
- A.2.119 –xcode=a
- A.2.120 -xdebugformat=[stabs|dwarf]
- A.2.121 -xdebuginfo=a[,a...]
- A.2.122 -xdepend=[yes|no]
- A.2.123 -xdumpmacros[=value[,value...]]
- A.2.124 -xe
- A.2.125 –xF[=v[,v...]]
- A.2.126 -xglobalize[={yes|no}]
- A.2.127 -xhelp=flags
- A.2.128 -xhwcprof
- A.2.129 -xia
- A.2.130 -xinline[=func-spec[,func-spec...]]
- A.2.131 –xinline_param=a[,a[,a]...]
- A.2.132 –xinline_report[=n]
- A.2.133 –xinstrument=[no%]datarace
- A.2.134 -xipo[={0|1|2}]
- A.2.135 -xipo_archive=[a]
- A.2.136 -xipo_build=[yes|no]
- A.2.137 -xivdep[=p]
- A.2.138 -xjobs{=n|auto}
- A.2.139 -xkeep_unref[={[no%]funcs,[no%]vars}]
- A.2.140 -xkeepframe[=[%all,%none,name,no%name]]
- A.2.141 -xlang=language[,language]
- A.2.142 -xldscope={v}
- A.2.143 -xlibmieee
- A.2.144 -xlibmil
- A.2.145 –xlibmopt
- A.2.146 –xlic_lib=sunperf
- A.2.147 –xlicinfo
- A.2.148 -xlinkopt[=level]
- A.2.149 -xloopinfo
- A.2.150 –xM
- A.2.151 -xM1
- A.2.152 -xMD
- A.2.153 -xMF
- A.2.154 -xMMD
- A.2.155 –xMerge
- A.2.156 -xmaxopt[=v]
- A.2.157 -xmemalign=ab
- A.2.158 -xmodel=[a]
- A.2.159 –xnolib
- A.2.160 –xnolibmil
- A.2.161 –xnolibmopt
- A.2.162 –xnorunpath
- A.2.163 -xOlevel
- A.2.164 -xopenmp[={parallel|noopt|none}]
- A.2.165 -xpagesize=n
- A.2.166 -xpagesize_heap=n
- A.2.167 -xpagesize_stack=n
- A.2.168 -xpatchpadding[={fix|patch|size}]
- A.2.169 -xpch=v
- A.2.170 -xpchstop=file
- A.2.171 -xpec[={yes|no}]
- A.2.172 –xpg
- A.2.173 -xport64[=(v)]
- A.2.174 -xprefetch[=a[,a...]]
- A.2.175 -xprefetch_auto_type=a
- A.2.176 -xprefetch_level[=i]
- A.2.177 -xprevise={yes|no}
- A.2.178 –xprofile=p
- A.2.179 -xprofile_ircache[=path]
- A.2.180 -xprofile_pathmap
- A.2.181 -xreduction
- A.2.182 –xregs=r[,r...]
- A.2.183 –xrestrict[=f]
- A.2.184 –xs[={yes|no}]
- A.2.185 –xsafe=mem
- A.2.186 –xsecure_code_analysis{=[yes|no]}
- A.2.187 –xsegment_align=n
- A.2.188 –xspace
- A.2.189 –xtarget=t
- A.2.190 -xtemp=path
- A.2.191 -xthreadvar[=o]
- A.2.192 -xthroughput[={yes|no}]
- A.2.193 –xtime
- A.2.194 -xtrigraphs[={yes|no}]
- A.2.195 -xunboundsym={yes|no}
- A.2.196 –xunroll=n
- A.2.197 -xustr={ascii_utf16_ushort|no}
- A.2.198 -xvector[=a]
- A.2.199 -xvis[={yes|no}]
- A.2.200 –xvpara
- A.2.201 –xwe
- A.2.202 -Yc,path
- A.2.203 -z[ ]arg
- Appendix B Pragmas
- Glossary
- Index
Index
Numbers and Symbols
- ! NOT operator, iostream
Handling Input Errors
Handling Output Errors
- —###, compiler option
-###
- —#, compiler option
-#
- $ identifier, allowing as noninitial
-features Values
- -abiopt, compiler option
–abiopt=[mangle5|mangle6]
- -Bbinding, compiler option
–Bbinding
Building Shared Libraries That Have Exceptions
- -c, compiler option
–c
Separate Compiling and Linking
- -compat
- compiler option
–compat={5|g}
- -D, compiler option
–Dname[=def]
General Guidelines
- -d, compiler option
–d{y|n}
- -DDEBUG
Template Instance Automatic Consistency With instances=extern
- -dryrun, compiler option
–dryrun
Understanding the Compiler Organization
- -E compiler option
–E
- -erroff compiler option
–erroff[=t]
- -errtags compiler option
–errtags[=a]
- -errwarn compiler option
–errwarn[=t]
- -fast, compiler option
–fast
- -features, compiler option
–features=a[,a...]
Thread Cancellation
Disabling Exceptions
Language Extensions
- -fexceptions, compiler option
–fexceptions|–fno-exceptions
- -filt, compiler option
–filt[=filter[,filter...]]
- -flags, compiler option
–flags
- -fno-exceptions, compiler option
–fexceptions|–fno-exceptions
- -fnonstd, compiler option
–fnonstd
- -fns, compiler option
–fns[={yes|no}]
- -fopenmp, compiler option
fopenmp
- -fprecision=p, compiler option
–fprecision=p
- -fround=r, compiler option
–fround=r
- -fsimple=n, compiler option
–fsimple[=n]
- -ftrap, compiler option
–ftrap=t[,t...]
- -g
–g- compiling templates using
Template Instance Automatic Consistency With instances=extern
- -G
- dynamic library command
Building Dynamic (Shared) Libraries
- option description
–G
- -g
- option description
–g[n]
- -H, compiler option
–H
- -h, compiler option
–h[ ]name
- -help, compiler option
–help
- -I, compiler option
–I–
–Ipathname
Definitions Search Path
- -i, compiler option
–i
- -include, compiler option
–include
filename
- -inline, See -xinline
–inline
- -instances=a, compiler option
–instances=a
Template Instance Placement and Linkage
- -instlib, compiler option
–instlib=filename
- -keeptmp, compiler option
–keeptmp
- -Kpic, compiler option
–Kpic
Building Dynamic (Shared) Libraries
- -KPIC, compiler option
–KPIC
Building Dynamic (Shared) Libraries
- -l, compiler option
–llib
Related Library Options
C Libraries
General Guidelines
- -L, compiler option
–Lpath
Related Library Options
- -libmieee, compiler option
–libmieee
- -libmil, compiler option
–libmil
- -library, compiler option
–library=l[,l...]
Statically Linking Standard Libraries
Linking C++ Libraries
Related Library Options
- -lthread compiler option
- suppressed by -xnolib
Statically Linking Standard Libraries
- using -mt in place of
Building Multithreaded Programs
- -mc, compiler option
–mc
- -misalign, compiler option
–misalign
- -mr, compiler option
–mr[,string]
- -mt compiler option
- linking libraries
C Libraries
- option description
–mt[={yes|no}]
- -native, compiler option
–native
- -noex, compiler option
–noex
Thread Cancellation
- -nofstore, compiler option
–nofstore
- -nolib, compiler option
–nolib
Related Library Options
- -nolibmil, compiler option
–nolibmil
- -norunpath, compiler option
–norunpath
Related Library Options
- -O, compiler option
–O
- -o, compiler option
–o
filename
- -Olevel, compiler option
–Olevel
- -P, compiler option
–P
- -pentium, compiler option
–pentium
- -pg, compiler option
–pg
- -PIC, compiler option
–PIC
- -pic, compiler option
–pic
- -preserve_argvalues
- compiler option
–preserve_argvalues[=simple|none]
- -pta, compiler option
–pta
- -pti, compiler option
–ptipath
Definitions Search Path
- -pto, compiler option
–pto
- -ptv, compiler option
–ptv
- -Qoption, compiler option
–Qoption
phase option[,option…]
- -qoption, compiler option
–qoption
phase option
- -qp, compiler option
–qp
- -Qproduce, compiler option
–Qproduce
sourcetype
- -qproduce, compiler option
–qproduce
sourcetype
- -R, compiler option
–Rpathname[:pathname…]
Related Library Options
- -S, compiler option
–S
- -s, compiler option
–s
- -staticlib, compiler option
–staticlib=l[,l...]
Statically Linking Standard Libraries
Related Library Options
- -sync_stdio, compiler option
–sync_stdio=[yes|no]
- -temp=dir, compiler option
–temp=path
- -template, compiler option
–template=opt[,opt…]
Template Definition Searching
Whole-Class Instantiation
- -time, compiler option
–time
- -U, compiler option
–Uname
General Guidelines
- -unroll=n, compiler option
–unroll=n
- -v, compiler option
–v
Understanding the Compiler Organization
- -V, compiler option
–V
- -verbose, compiler option
–verbose=v[,v…]
Verbose Compilation
- -W command-line option
–Wc,arg
- -w, compiler option
–w
- -xaddr32 compiler option
–xaddr32
- -xalias_level, compiler option
–xalias_level[=n]
- -xanalyze, compiler option
–xanalyze={code|%none}
- -xannotate, compiler option
–xannotate[=yes|no]
- -xar, compiler option
–xar
Building Static (Archive) Libraries
External Instances
- -xarch=isa, compiler option
–xarch=isa
- -xatomic
- compiler option
-xatomic=a
- -xautopar, compiler option
-xautopar
- -xbinopt compiler option
-xbinopt={prepare|off}
- -xbinopt, compiler option
-xbinopt={prepare|off}
- -xbuiltin, compiler option
-xbuiltin[={%all|%default|%none}]
- -xcache=c, compiler option
–xcache=c
- -xcg, compiler option
–cg{89|92}
- -xchar, compiler option
-xchar[=o]
- -xcheck, compiler option
-xcheck[=i[,i]]
- -xchip=c, compiler option
-xchip=c
- -xcode=a, compiler option
–xcode=a
- -xdebugformat compiler option
-xdebugformat=[stabs|dwarf]
- -xdebuginfo
-xdebuginfo=a[,a...]
- -xdepend, compiler option
-xdepend=[yes|no]
- -xdumpmacros, compiler option
-xdumpmacros[=value[,value...]]
- -xe, compiler option
-xe
-xe
- -xF, compiler option
xF[=v[,v...]]
- -xglobalize
-xglobalize[={yes|no}]
- -xhelp=flags, compiler option
-xhelp=flags
- -xhreadvar, compiler option
-xthreadvar[=o]
- -xhwcprof compiler option
-xhwcprof
- -xia, compiler option
-xia
- -xinline, compiler option
-xinline[=func-spec[,func-spec...]]
- -xinline_param
xinline_param=a[,a[,a]...]
- -xinline_report
xinline_report[=n]
- -xipo, compiler option
-xipo[={0|1|2}]
- -xipo_archive compiler option
-xipo_archive=[a]
- -xipo_build compiler option
-xipo_build=[yes|no]
- -xivdep, compiler option
-xivdep[=p]
- -xjobs, compiler option
-xjobs{=n|auto}
- -xkeepframe, compiler option
-xkeepframe[=[%all,%none,name,no%name]]
- -xlang, compiler option
-xlang=language[,language]
- -xldscope, compiler option
-xldscope={v}
Linker Scoping
- -xlibmieee, compiler option
-xlibmieee
- -xlibmil, compiler option
-xlibmil
- -xlibmopt, compiler option
–xlibmopt
- -xlic_lib, compiler option
–xlic_lib=sunperf
- -xlicinfo, compiler option
–xlicinfo
- -Xlinker, compiler option
–Xlinker
arg
- -xlinkopt, compiler option
-xlinkopt[=level]
- -xloopinfo, compiler option
-xloopinfo
- -xM1, compiler option
-xM1
- -Xm, compiler option
–Xm
- -xM, compiler option
–xM
- -xmaxopt compiler option
-xmaxopt[=v]
- -xmaxopt, compiler option
-xmaxopt[=v]
- -xMD, compiler option
-xMD
- -xmemalign, compiler option
-xmemalign=ab
- -xMerge, compiler option
–xMerge
- -xMF, compiler option
-xMF
- -xMMD, compiler option
-xMMD
- -xmodel, compiler option
-xmodel=[a]
- -xnolib, compiler option
–xnolib
Statically Linking Standard Libraries
Related Library Options
- -xnolibmil, compiler option
–xnolibmil
- -xnolibmopt, compiler option
–xnolibmopt
- -xOlevel, compiler option
-xOlevel
- -xopenmp, compiler option
-xopenmp[={parallel|noopt|none}]
- -xpagesize, compiler option
-xpagesize=n
- -xpagesize_heap, compiler option
-xpagesize_heap=n
- -xpagesize_stack, compiler option
-xpagesize_stack=n
- -xpec, compiler option
-xpec[={yes|no}]
- -xpg, compiler option
–xpg
- -xport64, compiler option
-xport64[=(v)]
- -xprefetch, compiler option
-xprefetch[=a[,a...]]
- -xprefetch_auto_type, compiler option
-xprefetch_auto_type=a
- -xprefetch_level, compiler option
-xprefetch_level[=i]
- -xprevise, compiler option
-xprevise={yes|no}
- -xprofile_ircache, compiler option
-xprofile_ircache[=path]
- -xprofile_pathmap, compiler option
-xprofile_pathmap
- -xpxpatchpadding, compiler option
-xpatchpadding[={fix|patch|size}]
- -xreduction, compiler option
-xreduction
- -xregs compiler option
–xregs=r[,r...]
- -xregs, compiler option
–xregs=r[,r...]
Building Libraries for Public Use
- -xrestrict, compiler option
–xrestrict[=f]
- -xs, link debug information from object files into executable
–xs[={yes|no}]
- -xsafe=mem, compiler option
–xsafe=mem
- -xsecure_code_analysis, compiler option
–xsecure_code_analysis{=[yes|no]}
- -xsegment_align, compiler option
–xsegment_align=n
- -xspace, compiler option
–xspace
- -xtarget=t, compiler option
–xtarget=t
- -xtemp
-xtemp=path
- -xthroughput, compiler option
-xthroughput[={yes|no}]
- -xtime, compiler option
–xtime
- -xtrigraphs, compiler option
-xtrigraphs[={yes|no}]
- -xunboundsym, compiler option
-xunboundsym={yes|no}
- -xunroll=n, compiler option
–xunroll=n
- -xustr, compiler option
-xustr={ascii_utf16_ushort|no}
- -xvector, compiler option
-xvector[=a]
- -xvis, compiler option
-xvis[={yes|no}]
- -xvpara, compiler option
xvpara
- -xwe, compiler option
–xwe
- -z arg, compiler option
-z[ ]arg
- .a, file name suffix
Understanding Libraries
File Name Suffixes Recognized by the C++ Compiler
- .c++, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .c, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .C, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .cpp, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .cxx, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .d file extension
-xMF
- .i, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .il, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .o files
- option suffixes
File Name Suffixes Recognized by the C++ Compiler
- preserving
Compile-Link Sequence
- .s, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .S, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- .so.n, file name suffix
File Name Suffixes Recognized by the C++ Compiler
- .so, file name suffix
Understanding Libraries
File Name Suffixes Recognized by the C++ Compiler
- .SUNWCCh file name suffix
Standard Header Implementation
- \>\> extraction operator
- iostream
Input Using iostream
- __attribute__
Supported Attributes
- __cplusplus, predefined macro
Language-Adaptable Header Files
- __func__, identifier
Using the Predefined __func__ Symbol for Function Name
- __FUNCTION__, identifier
Using the Predefined __func__ Symbol for Function Name
- __global
Linker Scoping Declaration Specifiers
- __hidden
Linker Scoping Declaration Specifiers
- __STDC__, predefined macro
Language-Adaptable Header Files
- __symbolic
Linker Scoping Declaration Specifiers
- __thread
Thread-Local Storage
- __VA_ARGS__ identifier
Macros With a Variable Number of Arguments
A
- aliases, simplifying commands with
Using Aliases Within the C Shell
- alignments
- default
Storage Sizes and Default Alignments in Bytes
- strictest
Strictest Alignment by Platform
- anachronisms, disallowing
-features Values
- anonymous class instance, passing
Passing the Address of an Anonymous Class Instance
- Apache C++ standard library
-library Values
- applications
- linking multithreaded
Building Multithreaded Programs
- applicator, parameterized manipulators
Parameterized Manipulators
- assembler, compilation component
Components of the C++ Compilation System
- assembly language templates
-xvis[={yes|no}]
- assignment, iostream
Assignment of iostreams
- ATS: Automatic Tuning System
-xpec[={yes|no}]
- attributes, supported
Supported Attributes
B
- binary input, reading
Binary Input
- binary optimization
-xbinopt={prepare|off}
- bool type and literals, allowing
-features Values
- buffer
- defined
iostream Terminology
- flushing output
Flushing
C
- .cc, file name suffixes
File Name Suffixes Recognized by the C++ Compiler
- C interface
- creating libraries
Building a Library That Has a C API
- removing C++ runtime dependences
Building a Library That Has a C API
- C standard library header files, replacing
Replacing Standard C Headers
- C++ standard library
- components
Using the C++ Standard Library
- replacing
Replacing the C++ Standard Library
- RogueWave version
Using the C++ Standard Library
- C++11 Standard
C++11 Standard
- C99 support
-xlang=language[,language]
- cache
- directory, template
Template Cache Considerations
- used by optimizer
–xcache=c
- cc command-line options
- -xdebuginfo
-xdebuginfo=a[,a...]
- -xinline_param
xinline_param=a[,a[,a]...]
- -xinline_report
xinline_report[=n]
- -xs
–xs[={yes|no}]
- CCadmin command
Repository Administration
- CCFLAGS, environment variable
Using CCFLAGS to Specify Compile
Options
- cerr standard stream
Predefined iostreams
- char* extractor
Using the char* Extractor
- char, signedness of
-xchar[=o]
- characters, reading single
Reading Any Single Character
- cin standard stream
Predefined iostreams
- class declaration specifier
Linker Scoping Declaration Specifiers
- class instance, anonymous
Passing the Address of an Anonymous Class Instance
- class libraries, using
Using Class Libraries
- class templates
- See Also
templates
Class Templates
- declaration
Class Template Definition
- definition
Function Member Definitions
Class Template Definition
- incomplete
Class Template Declaration
- member, definition
Class Template Member Definitions
- parameter, default
Default Template Parameters
- static data members
Static Data Member Definitions
- using
Class Template Use
- classes
- passing
Passing Classes Directly on Various Processors
Choosing to Pass Classes Directly
- classic iostreams
Note About Classic iostreams
- clog standard stream
Predefined iostreams
- code generation
- inliner and assembler, compilation component
Components of the C++ Compilation System
- code optimization
- by using -fast
–fast
- code optimizer, compilation component
Components of the C++ Compilation System
- command line
- options, unrecognized
Compiler Command-Line Diagnostics
- recognized file suffixes
File Name Conventions
- command-line options
- -g
–g
- -xglobalize
-xglobalize[={yes|no}]
- -xtemp
-xtemp=path
- compatibility mode
- See also -compat
–compat={5|g}
- compilation, memory requirements
Memory Requirements
- compiler
- component invocation order
Understanding the Compiler Organization
- diagnosing
Compiler Command-Line Diagnostics
- versions, incompatibility
Template Cache Considerations
- compiler option
- -xatomic
-xatomic=a
- compiling and linking
Compile-Link Sequence
- configuration macro
Libraries Shipped With the C++ Compiler
- constant strings in read-only memory
-features Values
- constructors
- iostream
Basic Structure of iostream Interaction
- static
Building Dynamic (Shared) Libraries
- copying
- files
Using streambuf Objects
- stream objects
Assignment of iostreams
- cout, standard stream
Predefined iostreams
- coverage analysis (tcov)
–xprofile=p
D
- +d, compiler option
+d
- debugger data format
-xdebugformat=[stabs|dwarf]
- debugging
- options
Compile-Time and Link-Time Options
- preparing programs for
Warnings
Consistent Compiling and Linking
- dec, iostream manipulator
iostream Predefined Manipulators
- declaration specifiers
- __global
Linker Scoping Declaration Specifiers
- __hidden
Linker Scoping Declaration Specifiers
- __symbolic
Linker Scoping Declaration Specifiers
- __thread
Thread-Local Storage
- default libraries, static linking
Statically Linking Standard Libraries
- default operators, using
Using Default Operators
- definition included model
Template Definitions Included
- definition separate model
Template Definitions Separate
- definitions, searching template
Template Definition Searching
- destructors, static
Building Dynamic (Shared) Libraries
- directives (pragmas)
Pragma Reference
- dlclose(), function call
Building Dynamic (Shared) Libraries
- dlopen(), function call
Understanding Libraries
- dwarf debugger-data format
-xdebugformat=[stabs|dwarf]
- dynamic (shared) libraries
–h[ ]name
–Bbinding
Building Dynamic (Shared) Libraries
Using Shared Libraries
E
- #error
Warnings and Errors
- elfdump
-xcode Values
- endl, iostream manipulator
iostream Predefined Manipulators
- ends, iostream manipulator
iostream Predefined Manipulators
- enum
- forward declarations
Making Forward Declarations of enum Types and Variables
- incomplete, using
Using Incomplete enum Types
- scope qualifier, using name as
Using an enum Name as a Scope Qualifier
- environment variables
- CCFLAGS
Using CCFLAGS to Specify Compile
Options
- LD_LIBRARY_PATH
Understanding Libraries
- SUNWS_CACHE_NAME
Repository Structure
- errno
- interaction with -fast
Warnings
- preserving value of
Warnings
- error
- bits
Handling Output Errors
- state, iostreams
Handling Output Errors
- error handling
- input
Handling Input Errors
- error messages
- compiler version incompatibility
Template Cache Considerations
- linker
Compiler Command-Line Diagnostics
Separate Compiling and Linking
- error function
Handling Output Errors
- exceptions
- and multithreading
Using Exceptions in a Multithreaded Program
- building shared libraries that have
Building Shared Libraries That Have Exceptions
- disabling
Disabling Exceptions
- disallowing
-features Values
- functions, in overriding
Overriding With Less Restrictive Virtual Functions
- longjmp and
Mixing Exceptions With Signals and Setjmp/Longjmp
- predefined
Using Runtime Functions and Predefined Exceptions
- setjmp and
Mixing Exceptions With Signals and Setjmp/Longjmp
- shared libraries
Building Shared Libraries That Contain Exceptions
- signal handlers and
Mixing Exceptions With Signals and Setjmp/Longjmp
- standard class
Using Runtime Functions and Predefined Exceptions
- standard header
Using Runtime Functions and Predefined Exceptions
- trapping
–ftrap=t[,t...]
- explicit instances
Template Instance Placement and Linkage
- export keyword, recognizing
-features Values
- extension features
Language Extensions- allowing nonstandard code
-features Values
- defined
Standards Conformance
- external
- instances
Template Instance Placement and Linkage
- linkage
External Instances
- extraction
- char*
Using the char* Extractor
- defined
iostream Terminology
- operators
Input Using iostream
- user-defined iostream
Defining Your Own Extraction Operators
- whitespace
Extracting Whitespace
F
- file descriptors, using
Opening a File Using a File Descriptor
- file names
- .SUNWCCh file name suffix
Standard Header Implementation
- suffixes
File Name Conventions
- template definition files
Source File Location Conventions
- files See Also
source files- C standard header files
Standard Header Implementation
- copying
Using streambuf Objects
Dealing With Files Using Class fstream
- executable program
Compile-Link Sequence
- multiple source, using
Using Multiple Source Files
- object
Building Dynamic (Shared) Libraries
General Guidelines
Compile-Link Sequence
- opening and closing
Opening and Closing Files
- repositioning
Repositioning Within a File
- standard library
Standard Header Implementation
- using fstreams with
Dealing With Files Using Class fstream
- finalization functions
#pragma fini
- float inserter, iostream output
Output Using iostream
- floating point
- invalid
–ftrap=t[,t...]
- precision (Intel)
–fstore
- flush, iostream manipulator
iostream Predefined Manipulators
- flush, iostream manipulator
Flushing
- format control, iostreams
Format Control
- Fortran runtime libraries, linking
-xlang=language[,language]
- front end, compilation component
Components of the C++ Compilation System
- fstream.h
- iostream header file
iostream Routine Header Files
- using
Dealing With Files Using Class fstream
- fstream, defined
iostream Terminology
Basic Structure of iostream Interaction
- function
- declaration specifier
Linker Scoping
- function templates
- See Also
templates
Function Templates
- declaration
Function Template Declaration
- definition
Function Template Definition
- using
Function Template Use
- function-level reordering
xF[=v[,v...]]
- functions
- in dynamic (shared) libraries
Building Dynamic (Shared) Libraries
- inlining by optimizer
-xinline[=func-spec[,func-spec...]]
- overriding
Overriding With Less Restrictive Virtual Functions
- static, as class friend
Declaring a Static Namespace-Scope Function as a Class Friend
- functions, name in __func__
Using the Predefined __func__ Symbol for Function Name
G
- garbage collection
- libraries
Compiler Options for Linking C++ Libraries
C++ Library Descriptions
- get pointer, streambuf
streambuf Pointer Types
- get, char extractor
Reading Any Single Character
- global
- instances
Template Instance Placement and Linkage
- linkage
External Instances
H
- header files
- C standard
Standard Header Implementation
- creating
Header Files
- idempotency
Idempotent Header Files
- Intel MMX intrinsics declarations
Compiler Support for Intel MMX and Extended x86 Platform Intrinsics
- iostream
iostream Predefined Manipulators
iostream Routine Header Files
iostream Routine Header Files
iostream Routine Header Files
iostream Routine Header Files
iostream Routine Header Files
iostream Routine Header Files
iostream Routine Header Files
- language-adaptable
Language-Adaptable Header Files
- standard library
What Can Be Replaced
- sunmedia_intrin.h
Compiler Support for Intel MMX and Extended x86 Platform Intrinsics
- heap, setting page size for
-xpagesize=n
- hex, iostream manipulator
iostream Predefined Manipulators
I
- I/O library
Using the Classic iostream Library
- idempotency
Header Files
- ifstream, defined
Basic Structure of iostream Interaction
- include directories, template definition files
Source File Location Conventions
- include files, search order
–I–
–Ipathname
- incompatibility, compiler versions
Template Cache Considerations
- initialization function
#pragma init
- inline expansion, assembly language templates
Components of the C++ Compilation System
- inline functions
- by optimizer
-xinline[=func-spec[,func-spec...]]
- C++, when to use
Using Inline Functions
- input
- binary
Binary Input
- error handling
Handling Input Errors
- iostream
Input Using iostream
- peeking at
Peeking at Input
- input/output, complex
Using the Classic iostream Library
- insertion
- defined
iostream Terminology
- operator
Output Using iostream
- insertion operator
- iostream
Defining Your Own Insertion Operator
Output Using iostream
- instance methods
- explicit
Explicit Instances
- global
Global Instances
- semi-explicit
Semi-Explicit Instances
- static
Static Instances
- template
Template Instance Placement and Linkage
- instance states, consistent
Template Instance Automatic Consistency With instances=extern
- instantiation
- options
Template Instance Placement and Linkage
- template class static data members
Explicit Instantiation of Template Class Static Data
Members
- template classes
Explicit Instantiation of Template Classes
- template function members
Explicit Instantiation of Template Class Function
Members
- template functions
Explicit Instantiation of Template Functions
- internationalization, implementation
Native-Language Support
- interprocedural optimizations
-xipo[={0|1|2}]
- interval arithmetic libraries, linking
-xia
- intrinsics, Intel MMX
Compiler Support for Intel MMX and Extended x86 Platform Intrinsics
- iomanip.h, iostream header files
iostream Predefined Manipulators
iostream Routine Header Files
- iostream.h, iostream header file
iostream Routine Header Files
- iostream
- classic iostreams
iostream Library
C++ Library Descriptions
- constructors
Basic Structure of iostream Interaction
- copying
Assignment of iostreams
- creating
Creating iostreams
- defined
iostream Terminology
- error bits
Handling Output Errors
- error handling
Handling Input Errors
- flushing
Flushing
- formats
Format Control
- header files
Using the Classic iostream Library
- input
Input Using iostream
- library
Linking C++ Libraries
iostream Library
Libraries Shipped With the C++ Compiler
- man pages
iostream Man Pages
Using the Classic iostream Library
- manipulators
Manipulators
- mixing old and new forms
Interactions
- output errors
Handling Output Errors
- output to
Output Using iostream
- predefined
Predefined iostreams
- standard iostreams
iostream Library
C++ Library Descriptions
- standard mode
iostream Routine Header Files
Using the Classic iostream Library
- stdio
stdiobuf: iostreams for stdio Files
Using iostreams With stdio
- stream assignment
Assignment of iostreams
- structure
Basic Structure of iostream Interaction
- terminology
iostream Terminology
- using
Using the Classic iostream Library
- iostreams, classic
Note About Classic iostreams
- ISO C++ standard
- conformance
Standards Conformance
- one-definition rule
Sharing Template Repositories
Referencing Static Variables and Static Functions
- ISO10646 UTF-16 string literal
Values
- istream class, defined
Basic Structure of iostream Interaction
- istrstream class, defined
Basic Structure of iostream Interaction
L
- languages
- C99 support
-xlang=language[,language]
- support for native
Native-Language Support
- LD_LIBRARY_PATH environment variable
Understanding Libraries
- left-shift operator
- iostream
Output Using iostream
- libc library
C Libraries
- libCrun library
Default C++ Libraries
Libraries Shipped With the C++ Compiler
Using C++ Support Libraries With Threads and Signals
Building Multithreaded Programs
- libCstd library See
C++ standard library
- libcsunimath
- library
Libraries Shipped With the C++ Compiler
- libdemangle library
Libraries Shipped With the C++ Compiler
- libgc library
Libraries Shipped With the C++ Compiler
- libiostream See
iostream
- libm
- inline templates
-xlibmil
- library
C Libraries
- optimized version
–xlibmopt
- libraries
- building shared libraries
-xcode Values
- C interface
C Libraries
- C++ compiler, provided with
Libraries Provided With the C++ Compiler
- C++ standard
Using the C++ Standard Library
- class, using
Using Class Libraries
- classic iostream
Using the Classic iostream Library
- configuration macro
Libraries Shipped With the C++ Compiler
- interval arithmetic
-xia
- linking options
Linking C++ Libraries
- linking order
General Guidelines
- linking with -mt
C Libraries
- naming a shared library
–h[ ]name
- optimized math
–xlibmopt
- replacing, C++ standard library
Replacing the C++ Standard Library
- shared
–d{y|n}
Using Shared Libraries
- suffixes
Understanding Libraries
- Sun Performance Library, linking
–xlic_lib=sunperf
- understanding
Understanding Libraries
- using
Using Libraries
- libraries, building
- dynamic (shared)
Understanding Libraries
- for private use
Building Libraries for Private Use
- for public use
Building Libraries for Public Use
- linking options
Warnings
- shared with exceptions
Building Shared Libraries That Contain Exceptions
- static (archive)
Building Libraries
- with C API
Building a Library That Has a C API
- libthread library
C Libraries
- limit, command
Control of Virtual Memory
- link-time optimization
-xlinkopt[=level]
- linker scoping
Linker Scoping
- linking
- consistent with compilation
Consistent Compiling and Linking
- disabling system libraries
–xnolib
- dynamic (shared) libraries
–Bbinding
Understanding Libraries
- iostream library
iostream Library
- libraries
Linking C++ Libraries
Default C++ Libraries
C Libraries
- separate from compilation
Separate Compiling and Linking
- static (archive) libraries
–staticlib=l[,l...]
–Bbinding
Understanding Libraries
Statically Linking Standard Libraries
Related Library Options
- symbolic
Standard Header Implementation
- template instance methods
Template Instance Placement and Linkage
- literal strings in read-only memory
-features Values
- local-scope rules, enabling and disabling
-features Values
- loops
-xdepend=[yes|no]- -xloopinfo
-xloopinfo
- reduction with -xreduction
-xreduction
M
- makefile dependencies
-xMF
- man pages
- accessing
Man Pages
- iostream
Parameterized Manipulators
Format Control
Dealing With Files Using Class fstream
Using the Classic iostream Library
- manipulators
- iostreams
Manipulators
- plain
Using Plain Manipulators
- predefined
iostream Predefined Manipulators
- math library, optimized version
–xlibmopt
- mbarrier.h
Memory Barrier Intrinsics
- member variables, caching
Cache Member Variables
- memory barrier intrinsics
Memory Barrier Intrinsics
- memory requirements
Memory Requirements
- mixed-language linking
- -xlang
-xlang=language[,language]
- multimedia types, handling of
-xvis[={yes|no}]
- multiple source files, using
Using Multiple Source Files
- multithreaded
- application
Indicating Multithreaded Compilation
- compilation
Indicating Multithreaded Compilation
- exception-handling
Using Exceptions in a Multithreaded Program
- multithreading
–mt[={yes|no}]
- mutable keyword, recognizing
-features Values
N
- native-language support, application development
Native-Language Support
- nestedacess keyword
-features Values
- nonincremental link editor, compilation component
Components of the C++ Compilation System
- nonstandard features
Language Extensions- allowing nonstandard code
-features Values
- defined
Standards Conformance
O
- object files
- linking order
General Guidelines
- relocatable
Building Dynamic (Shared) Libraries
- objects
- destruction order
-features Values
- temporary
Avoiding Temporary Objects
- temporary, lifetime of
-features Values
- within library, when linked
Understanding Libraries
- oct, iostream manipulator
iostream Predefined Manipulators
- ofstream class
Dealing With Files Using Class fstream
- operators
- iostream
Defining Your Own Extraction Operators
Defining Your Own Insertion Operator
Output Using iostream
- optimization
- at link time
-xlinkopt[=level]
- levels
-xOlevel
- math library
–xlibmopt
- target hardware
–xtarget=t
- with -fast
–fast
- with -xmaxopt
-xmaxopt[=v]
- with pragma opt
#pragma opt
- optimizer out of memory
Memory Requirements
- options, command-line See
individual options under alphabetical listings- C++ compiler options reference
Option Reference
- summarized by function
Options Summarized by Function
- syntax
Syntax Overview
- ostream class, defined
Basic Structure of iostream Interaction
- ostrstream class, defined
Basic Structure of iostream Interaction
- output
Using the Classic iostream Library- binary
Binary Output
- buffer flushing
Flushing
- cout
Output Using iostream
- flushing
Flushing
- handling errors
Handling Output Errors
P
- #pragma dumpmacros
#pragma dumpmacros
- #pragma align
#pragma align
- #pragma does_not_read_global_data
#pragma does_not_read_global_data
- #pragma does_not_return
#pragma does_not_return
- #pragma does_not_write_global_data
#pragma does_not_write_global_data
- #pragma end_dumpmacros
#pragma end_dumpmacros
- #pragma error_messages
#pragma error_messages
- #pragma fini
#pragma fini
- #pragma ident
#pragma ident
- #pragma init
#pragma init
- #pragma must_have_frame
#pragma must_have_frame
- #pragma no_side_effect
#pragma no_side_effect
- #pragma opt
#pragma opt
- #pragma pack
#pragma pack(n)
- #pragma rarely_called
#pragma rarely_called
- #pragma returns_new_memory
#pragma returns_new_memory
- #pragma unknown_control_flow
#pragma unknown_control_flow
- #pragma weak
#pragma weak
- #pragma keywords
Pragma Reference
- +p, compiler option
+p
- page size, setting for stack or heap
-xpagesize=n
- parallelization
- turning on warning messages
xvpara
- turning on with -xautopar for multiple processors
-xautopar
- parallelization, with -xreduction
-xreduction
- parameterized manipulators, iostreams
Parameterized Manipulators
- PEC: Portable Executable Code
-xpec[={yes|no}]
- peeking at input
Peeking at Input
- Pentium
-xtarget Values on x86 Platforms
- performance
- optimizing with -fast
–fast
- placement, template instances
Template Instance Placement and Linkage
- plain manipulators, iostreams
Using Plain Manipulators
- POSIX threads
–mt[={yes|no}]
- pragmas (directives)
Pragma Reference
- precedence, avoiding problems of
Output Using iostream
- precompiled-header file
Creating a Precompiled-Header File
- predefined manipulators, iomanip.h
iostream Predefined Manipulators
- prefetch instructions, enabling
-xprefetch[=a[,a...]]
- preserving signedness of chars
-xchar[=o]
- processor, specifying target
–xtarget=t
- profiling
- -xprofile
–xprofile=p
- programs
- basic building steps
Getting Started
- building multithreaded
Building Multithreaded Programs
- ptclean command
Repository Administration
- pthread_cancel() function
Thread Cancellation
- put pointer, streambuf
streambuf Pointer Types
R
- reinterpret_cast operator
Warning
- release information
Release Information
- reorder functions
xF[=v[,v...]]
- repositioning within a file, fstream
Repositioning Within a File
- resetiosflags, iostream manipulator
iostream Predefined Manipulators
- restricted pointers
Restricted Pointers
- right-shift operator
- iostream
Input Using iostream
- RogueWave
- C++ standard library
Using the C++ Standard Library
- runtime error messages
Specifying Runtime Errors
- runtime libraries readme
Redistribution and Supported STLport Libraries
- rvalueref keyword
-features Values
S
- sbufpub, man pages
Dealing With Files Using Class fstream
- search path
- definitions
Definitions Search Path
- dynamic library
Related Library Options
- include files, defined
–Ipathname
- standard header implementation
Standard Header Implementation
- searching
- template definition files
Template Definition Searching
- semi-explicit instances
Semi-Explicit Instances
Template Instance Placement and Linkage
- set_terminate() function
Using Exceptions in a Multithreaded Program
- set_unexpected() function
Using Exceptions in a Multithreaded Program
- setbase, iostream manipulator
iostream Predefined Manipulators
- setfill, iostream manipulator
iostream Predefined Manipulators
- setioflags, iostream manipulator
iostream Predefined Manipulators
- setprecision, iostream manipulator
iostream Predefined Manipulators
- setw, iostream manipulator
iostream Predefined Manipulators
- shared libraries
- accessing from a C program
Using dlopen to Access a C++ Library From a C Program
- building
–G
Building Dynamic (Shared) Libraries
- building, with exceptions
Building Shared Libraries That Have Exceptions
- containing exceptions
Building Shared Libraries That Contain Exceptions
- disallowing linking of
–d{y|n}
- naming
–h[ ]name
- shell, limiting virtual memory in
Control of Virtual Memory
- shift operators, iostreams
Using Plain Manipulators
- signal handlers
- and exceptions
Synchronous and Asynchronous Exceptions
- and multithreading
Using C++ Support Libraries With Threads and Signals
- signedness of chars
-xchar[=o]
- sizes, storage
Storage Sizes and Default Alignments in Bytes
- skip flag, iostream
Extracting Whitespace
- Solaris operating environment libraries
C Libraries
- Solaris threads
–mt[={yes|no}]
- source files
- linking order
General Guidelines
- location conventions
Source File Location Conventions
- spellings, alternative
-features Values
- stabs debugger-data format
-xdebugformat=[stabs|dwarf]
- stack
- setting page size for
-xpagesize=n
- standard error, iostreams
Predefined iostreams
- standard headers
- implementing
Standard Header Implementation
- replacing
Replacing Standard C++ Headers
- standard input, iostreams
Predefined iostreams
- standard iostream classes
Using the Classic iostream Library
- standard mode
- iostream
iostream Routine Header Files
Using the Classic iostream Library
Using the Classic iostream Library
- See also -compat
–compat={5|g}
- standard output, iostreams
Predefined iostreams
- Standard Template Library (STL)
Using the C++ Standard Library
- standards, conformance
Standards Conformance
- static
- archive libraries
Understanding Libraries
- functions, referencing
Referencing Static Variables and Static Functions
- instances (deprecated)
Template Instance Placement and Linkage
- objects, initializers for nonlocal
-features Values
- variables, referencing
Referencing Static Variables and Static Functions
- static linking
- compiler provided libraries
–staticlib=l[,l...]
Related Library Options
- default libraries
Statically Linking Standard Libraries
- library binding
–Bbinding
- template instances
Static Instances
- stdcxx4 keyword
-library Values
- stdio
- stdiobuf man pages
stdiobuf: iostreams for stdio Files
- with iostreams
Using iostreams With stdio
- stdiostream.h, iostream header file
iostream Routine Header Files
- STL (Standard Template Library), components
Using the C++ Standard Library
- STLport
STLport
- storage sizes
Storage Sizes and Default Alignments in Bytes
- stream, defined
iostream Terminology
- stream.h, iostream header file
iostream Routine Header Files
- streambuf
- defined
iostream Terminology
Working Withstreambuf Streams
- get pointer
streambuf Pointer Types
- man pages
Using streambuf Objects
- put pointer
streambuf Pointer Types
- queue-like versus file-like
streambuf Pointer Types
- using
Using streambuf Objects
- streampos
Repositioning Within a File
- string literal of U"..." form
Values
- strstream.h, iostream header file
iostream Routine Header Files
- strstream, defined
iostream Terminology
Basic Structure of iostream Interaction
- struct, anonymous declarations
Using Anonymous struct Declarations
- structure declaration specifier
Linker Scoping Declaration Specifiers
- subprograms, compilation options
Consistent Compiling and Linking
- suffixes
- .SUNWCCh
Standard Header Implementation
- command line file name
File Name Conventions
- files without
Standard Header Implementation
- library
Understanding Libraries
- SunWS_cache
Repository Structure
- swap -s, command
Swap Space Size
- swap space
Swap Space Size
- symbol declaration specifier
Linker Scoping
- symbol tables, executable file
–s
- syntax
- CC command line
Command Syntax
- options
Option Syntax Format Examples
T
- -traceback, compiler option
–traceback[={%none|common|signals_list}]
- tcov
- -xprofile
–xprofile=p
- template definition
- included
Template Definitions Included
- search path
Definitions Search Path
- separate
Template Definitions Separate
- separate, file
Source File Location Conventions
- troubleshooting a search for definitions
Troubleshooting a Problematic Search
- template instantiation
Template Instantiation- explicit
Explicit Template Instantiation
- function
Explicit Template Instantiation
- implicit
Implicit Template Instantiation
- whole-class
Whole-Class Instantiation
- template pre-linker, compilation component
Components of the C++ Compilation System
- template problems
Template Problem Areas- friend declarations of template functions
Friend Declarations of Template Functions
- local types as arguments
Local Types as Template Arguments
- non-local name resolution and instantiation
Nonlocal Name Resolution and Instantiation
- static objects, referencing
Referencing Static Variables and Static Functions
- troubleshooting a search for definitions
Troubleshooting a Problematic Search
- using qualified names in template definitions
Using Qualified Names Within Template Definitions
- templates
- cache directory
Template Cache Considerations
- commands
Repository Administration
- compilation
External Instances
- definitions-separate vs. definitions-included organization
Template Definition Searching
- inline
-xlibmil
- instance methods
Template Instance Automatic Consistency With instances=extern
Template Instance Placement and Linkage
- linking
Consistent Compiling and Linking
- nested
Template Composition
- partial specialization
Partial Specialization
- repositories
Template Repository
- source files
Source File Location Conventions
- specialization
Template Specialization
- Standard Template Library (STL)
Using the C++ Standard Library
- static objects, referencing
Referencing Static Variables and Static Functions
- troubleshooting a search for definitions
Troubleshooting a Problematic Search
- verbose compilation
Verbose Compilation
- terminate() function
Using Exceptions in a Multithreaded Program
- thread local storage of variables
Thread-Local Storage
- Tools.h++
- compiler options
Linking C++ Libraries
- traceback
–traceback[={%none|common|signals_list}]
- trapping mode
–ftrap=t[,t...]
- trigraph sequences, recognizing
-xtrigraphs[={yes|no}]
U
- ulimit, command
Control of Virtual Memory
- unexpected() function
Using Exceptions in a Multithreaded Program
- union declaration specifier
Linker Scoping Declaration Specifiers
- user-defined types
- iostream
Output Using iostream
V
- value classes, using
Using Value Classes
- values
- float
Output Using iostream
- flush
Flushing
- inserting on cout
Output Using iostream
- long
Parameterized Manipulators
- manipulator
Parameterized Manipulators
iostream Routine Header Files
- variable argument lists
Macros With a Variable Number of Arguments
- variable declaration specifier
Linker Scoping
- variable, thread-local storage specifier
Thread-Local Storage
- viable prefix
Using a Precompiled-Header File
- virtual memory, limits
Control of Virtual Memory
- VIS Software Developers Kit
-xvis[={yes|no}]
W
- #warning
Warnings and Errors
- +w2, compiler option
+w2
- +w, compiler option
+w
Verbose Compilation
- warnings
- anachronisms
–w
- C header replacement
Caveats:
- inefficient code
+w
- nonportable code
+w
- problematic ARM language constructs
-features Values
- suppressing
–w
- technical violations reducing portability
+w2
- unrecognized arguments
Compiler Command-Line Diagnostics
- whitespace
- extractors
Extracting Whitespace
- leading
Reading Any Single Character
- skipping
Using Plain Manipulators
Extracting Whitespace
- workstations, memory requirements
Memory Requirements
- ws, iostream manipulator
iostream Predefined Manipulators
Extracting Whitespace
X
- X inserter, iostream
Output Using iostream