我正在尝试在 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 位二进制文件?
谢谢尼拉吉·拉蒂