在Solaris10上使用g++进行64位编译
64 bit compilation using g++ on Solaris10
我正试图在Solaris10上使用g++的共享安装来编译一个测试cpp代码,但它仅在32位模式下编译。
/tools/gnu/bin/g++ -v
Reading specs from /tools/gnu/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/tools/gnu/bin/g++ -g -m64 ~/test9.cpp
cc1plus: -m64 is not supported by this configuration
cc1plus: -mptr32 not allowed on -m64
uname -aimnprsvX
SunOS md1sisun26 5.10 Generic_141444-09 sun4v sparc sun4vSystem = SunOS
Node = md1sisun26
Release = 5.10
KernelID = Generic_141444-09
Machine = sun4v
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 8
你能建议我在这里应该给我什么选项来生成64位二进制文件吗?
谢谢Niraj Rathi
gcc 2.95.2不支持-m64
。您需要升级编译器。
这条信息也可能会提供一些见解。
看起来您有一个32位版本的Solaris。。。你可以用测试我是否属实
/usr/bin/isainfo -kv
相关文章:
- 将应用程序从32位移植到64位时出现问题
- 64位机器上的C++内存对齐
- qmake:检测目标位宽(32 位或 64 位)
- 将 64 位整数中的每个其他位与 32 位整数进行比较
- 在 64 位 Windows 上运行的 32 位应用程序是否仍然需要使用 SAFESEH 进行编译
- 如何从32位流程中获取可靠的内存使用信息以进行64位过程
- 需要(构建?)文件以在Windows 7 64位上进行Eclipse
- 对 64 位整数中的尾随零位进行计数的固有功能
- 使用硬件内存保护对64位硬件进行数组边界检查
- 在 64 位 Windows 7 上使用 MinGW 进行编译时"Error: bad register name `%rax'"
- 移植将 32 位浮点数与使用 64 位进行比较的代码,此值表示什么
- 32 位和 64 位程序是否可以使用 MSMQ 进行通信
- 在64位计算机上进行加密++32位编译
- 在Solaris10上使用g++进行64位编译
- 在英特尔CPU上的32位和64位内部CRC之间进行选择
- GCC 无法矢量化 64 位乘法。64 位 x 64 位 -> 128 位加宽乘法可以在 AVX2 上进行矢量化吗?
- 在64位窗口中与qt进行静态链接时出错
- 如何将变量放入较高的地址空间(64位)进行测试
- 对64位字进行32位比较和交换
- 使用for循环对32位和64位容器/字符串的元素进行反向迭代而不发出警告