Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/158.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ ar在solaris x86上不支持64位吗?_C++_Solaris 10_Unix Ar - Fatal编程技术网

C++ ar在solaris x86上不支持64位吗?

C++ ar在solaris x86上不支持64位吗?,c++,solaris-10,unix-ar,C++,Solaris 10,Unix Ar,我的构建在solaris x86上使用64位boost时失败。原因是ar命令无法将*.o打包到64位静态库。谁能帮忙?非常感谢您的评论 以下是我的测试: % ar rc test.a date_generators.o greg_month.o greg_weekday.o % file * date_generators.o: ELF 64-bit LSB relocatable AMD64 Version 1 greg_month.o: ELF 64-bit LSB rel

我的构建在solaris x86上使用64位boost时失败。原因是ar命令无法将*.o打包到64位静态库。谁能帮忙?非常感谢您的评论 以下是我的测试:

% ar rc test.a date_generators.o greg_month.o greg_weekday.o 

% file *
date_generators.o:      ELF 64-bit LSB relocatable AMD64 Version 1
greg_month.o:   ELF 64-bit LSB relocatable AMD64 Version 1
greg_weekday.o: ELF 64-bit LSB relocatable AMD64 Version 1
test.a:         current ar archive, 32-bit symbol table
% ar
usage: ar -d[-SvV] archive file ...
ar -m[-abiSvV] [posname] archive file ...
ar -p[-vV][-sS] archive [file ...]
ar -q[-cuvSV] [-abi] [posname] [file ...]
ar -r[-cuvSV] [-abi] [posname] [file ...]
ar -t[-vV][-sS] archive [file ...]
ar -x[-vV][-sSCT] archive [file ...]

您的
测试。一个
文件确实包含64个库,它只是它的符号表,是32位的,但这并不阻止64位链接工作

如果您确实希望
文件
声明它有一个64位符号表,您可以运行:

ar Src test.a date_generators.o greg_month.o greg_weekday.o