如何查看C++版本

HANKTJU 2007-10-26 04:07:46
solaris下安装了sun studio11中的C++编译器,如何查看c++编译器的版本号
...全文
1403 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
meiZiNick 2008-05-01
  • 打赏
  • 举报
回复
没遇到过这种情况.
nowplaycn 2007-12-06
  • 打赏
  • 举报
回复
my god,运行 CC -V
mymtom 2007-10-29
  • 打赏
  • 举报
回复
用man CC查看:
mymtom@t1000:/home/c/r/mymtom$ man CC

User Commands CC(1)

NAME
CC - C++ compiler

SYNOPSIS
CC [-386] [-486] [-a] [-B{dynamic|static|symbolic}] [-c]
[-cg{89|92}] [-compat[={4|5}]] [+d] [-Dname[=def]]
[-d{y|n}] [-dalign] [-dryrun] [-E] [+e{0|1}]
[-erroff[=t[,t...]]] [-errtags[=a]]
[-errwarn[=t[,t...]]] [-fast] [-features=a[,a...]]
[-filt[=filter[,filter...]] [-flags] [-fnonstd]
[-fns[={yes|no}]] [-fprecision=a] [-fround=a]
[-fsimple[=n]] [-fstore] [-ftrap=a[,a...]] [-G] [-g]
[-g0] [-H] [-h[ ]lname] [-help] [-Ipathname] [-I-] [-i]
[-inline] [-instances=i] [-instlib=file] [-KPIC]
[-Kpic] [-keeptmp] [-Lpath] [-llib] [-libmieee]
[-libmil] [-library=lib[,lib...]] [-mc] [-migration]
[-misalign] [-mr[,string]] [-mt] [-native] [-noex]
[-nofstore] [-nolib] [-nolibmil] [-noqueue]
[-norunpath] [-O[n]] [-O[level]] [-o file] [+p] [-P]
[-p] [-pentium] [-pg] [-PIC] [-pic] [-pta] [-ptipath]
[-pto] [-ptrpath] [-ptv]
[{-Qoption|-qoption}phase[,option...]]
[{-Qproduce|-qproduce}type] [-qp] [-Rpath[:path...]]
[-readme] [-S] [-s] [-sb] [-sbfast]
[-staticlib=l[,l...]] [-sync_stdio=[yes|no]]
[-temp=path] [-template=a[,a...]] [-time] [-Uname]
[-unroll=n] [-V] [-v] [-vdelx] [-verbose=a[,a...]]
[+w] [+w2] [-w] [-Xm] [-xa] [-xalias_level[=n]] [-xar]
[-xarch=isa] [-xautopar] [-xbinopt={a}]
[-xbuiltin[={%all|%none}]] [-xcache=c] [-xcg{89|92}]
[-xchar[=o]] [-xcheck[=n]] [-xchip=c] [-xcode=v]
[-xcrossfile[=n]] [-xdebugformat=[stabs|dwarf]]
[-xdepend[={yes|no}]] [-xdumpmacros[=value[,value...]]
[-xe] [-xF] [-xhelp={flags|readme}] [-xia]
[-xinline[=func_spec[,func_spec...]] [-xipo[={0|1|2}]
[-xjobs=n] [-xlang=language[,language]] [-xldscope={v}]
[-xlibmieee] [-xlibmil] [-xlibmopt] [-xlic_lib=sunperf]
[-xlicinfo] [-xlinkopt[=level]] [-xM] [-xM1] [-xMerge]
[-xmaxopt[=v]] [-xmemalign=ab] [-xmodel=[a]]
[-xnativeconnect[=n]] [-xnolib] [-xnolibmil] [-xnolib-
mopt] [-xOn] [-xopenmp] [-xpagesize=n]
[-xpagesize_heap=n] [-xpagesize_stack=n] [-xpch=v]
[-xpchstop] [-xpg] [-xport64[=v]] [-xprefetch[=a[,a]]
[-xprefetch_auto_type=[a] [-xprefetch_level[=l]]
[-xprofile=p] [-xprofile_ircache[=path]]
[-xprofile_pathmap=collect_prefix:use_prefix]
[-xregs=r[,r...]] [-xrestrict[=f]] [-xs] [-xsafe=mem]
[-xsb] [-xsbfast] [-xspace] [-xtarget=t]
[-xthreadvar[=o]] [-xtime] [-xtrigraphs[={yes|no}]]
[-xunroll=n] [-xustr={ascii_utf16_ushort|no}]
[-xvector[=a]] [-xvis] [-xwe] [-Yc,path] [-z arg]
[file] ...

Last change: 2005/10/11 1

User Commands CC(1)

Sun Studio 11: C++ 5.8 Compiler
A man page, by definition, is a quick reference. For more
detailed information on the C++ compiler and its options,
see the C++ User's Guide.

See the online readme file, viewable by calling
CC -xhelp=readme
for the latest important information on platforms, environ-
ments, new features, and software corrections.

Access all the installed Sun compilers and tools documenta-
tion, including readme files, user guides, and reference
manuals by pointing an HTML browser to the default installa-
tion directory:
file:/opt/SUNWspro/docs/index.html

Note - If your Sun compilers and tools are not installed in
the default /opt directory, ask your system administrator
for the equivalent path on your system.

New Features
This section describes the new and changed features for the
Sun Studio 11: C++ 5.8 compiler. See the Sun Studio 11 C++
User's Guide for more detailed descriptions of the new
features.

1,543

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 Solaris
社区管理员
  • Solaris
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧