unix中的C 编译器版本
c++ compiler version in unix
我想在Unix环境下知道服务器的编译器版本(CC)。显然,我找到了安装编译器的正确目录
cngsitbe1a@/opt/SUNWspro/prod/bin$ ls -ltr
total 82225
-rwxr-xr-x 1 root sys 22864 Apr 30 2007 libsunperf_check
-rwxr-xr-x 1 root sys 1193036 May 3 2007 acomp
-rwxr-xr-x 1 root sys 480752 May 3 2007 fbe
-rwxr-xr-x 1 root sys 8298296 May 3 2007 cg
-rwxr-xr-x 1 root sys 6454044 May 3 2007 iropt
-rwxr-xr-x 1 root sys 5294740 May 3 2007 ccfe
-rwxr-xr-x 1 root sys 534392 May 3 2007 CClink
-rwxr-xr-x 1 root sys 116212 May 3 2007 c++filt
-rwxr-xr-x 1 root sys 18580 May 3 2007 stdlibfilt
-rwxr-xr-x 1 root sys 539124 May 3 2007 CCadmin
-rwxr-xr-x 1 root sys 7408 May 3 2007 dem
-rwxr-xr-x 1 root sys 519 May 3 2007 ptclean
-rwxr-xr-x 1 root sys 30936 May 3 2007 cb
-rwxr-xr-x 1 root sys 16004 May 3 2007 nmf
-rwxr-xr-x 1 root sys 19216 May 3 2007 lpfx
-rwxr-xr-x 1 root sys 14944 May 3 2007 flip
-rwxr-xr-x 1 root sys 17172 May 3 2007 dag
-rwxr-xr-x 1 root sys 5118 May 3 2007 cflow
-rwxr-xr-x 1 root sys 101484 May 3 2007 cscope
-rwxr-xr-x 1 root sys 8920 May 3 2007 runtime.c
-rwxr-xr-x 1 root sys 63004 May 3 2007 ctrace
-rwxr-xr-x 1 root sys 3361 May 3 2007 ctcr
-rwxr-xr-x 1 root sys 21788 May 3 2007 xref
-rwxr-xr-x 1 root sys 4863 May 3 2007 cxref
-rwxr-xr-x 1 root sys 11508 May 3 2007 irprint
-rwxr-xr-x 1 root sys 358548 May 3 2007 CC
-rwxr-xr-x 1 root sys 246684 May 3 2007 lint
-rwxr-xr-x 1 root sys 276584 May 3 2007 cc
但是,当我使用命令查找CC版本时,没有提供有用的信息。
cngsitbe1a@/opt/SUNWspro/prod/bin$ CC -V
-bash: CC: command not found
此外,当在服务器A中编译二进制并在服务器B中部署/运行时,服务器B的编译器是否会影响二进制的触发?可以帮助?
使用
./CC -V
致电CC
可执行文件,只要/opt/SUNWspro/prod/bin
不属于PATH
变量。
如注释中所述,大多数编译器都使用--version
选项来检索当前版本。
相关文章:
- CMake 库链接使用两个不同的编译器版本
- 我的设备上的 C++ 编译器版本是什么
- 不同版本的编译器(例如GCC)是否会产生不同的性能?
- 为什么库API+编译器ABI足以确保具有不同版本gcc的对象之间的兼容性
- 检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
- 是否根据编译器版本有条件地包含源文件
- 如果使用低于 VS2015 的 vc++ 编译器版本编译,则 DLL 中的访问冲突
- 在Travis中为CMAKE构建指定编译器版本
- 是否有编译器标志可以使较新的 gcc 版本像旧版本一样构建
- Apple Clang编译器版本架构架构
- GCC编译器,为较低版本的GCC编译应用程序
- 功能模板与Variadic模板过载:Intel C 编译器版本18产生的结果不同于其他编译器.英特尔是错误的
- Boost bjam 不会将编译器版本放在文件名中
- 具有C 接口的C 动态库如何在不同的编译器版本之间不会破坏ABI
- 不同编译器版本的C++中的奇怪行为(字符串通过引用传递):参见简单的程序说明
- 在不同的编译器版本中调用new[]和delete[]
- c++ 编译器优化是否可以针对布尔参数生成两个版本的函数
- 具有状态的Microsoft编译器版本19.16.27024.1的问题
- Node.js C 插件开发的编译器版本
- unix中的C 编译器版本