HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
:/usr/lib:/opt/langtools/lib:/usr/lib
/opt/aCC/lbin/ld -o a.out /opt/aCC/lib/crt0.o -u ___exit -u main
-L /opt/aCC/lib /opt/aCC/lib/cpprt0.o app.o -lstd -lstream -lCsup
-lm /usr/lib/hpux32/libcl.a -lc /usr/lib/hpux32/libdld.so >/usr/tmp/AAAa28149 2>&1
removing /usr/tmp/AAAa28149
-V
-V
The -V option displays the version numbers of the current compiler and linker (if the
linker is executed). Use this option whenever you need to know the current compiler and
linker version numbers.
Example:
aCC -V app.C
aCC: HP aC++/ANSI C B3910B A.06.00 [Aug 25 2004]
ld: 92453-07 linker ld HP Itanium(R) B.12.24 PBO 040820 (IPF/IPF)
Concatenating Options
You can concatenate some options to the aCC command under a single prefix. The
longest substring that matches an option is used. Only the last option can take an
argument. You can concatenate option arguments with their options if the resulting string
does not match a longer option.
Examples:
Suppose you want to compile my_file.C using the options -v and -g1. Below are
equivalent command lines you can use:
• aCC my_file.C -v -g1
• aCC my_file.C -vg1
• aCC my_file.C -vg1
• aCC -vg1 my_file.C
Concatenating Options 115