C++ ar在solaris x86上不支持64位吗?
我的构建在solaris x86上使用64位boost时失败。原因是ar命令无法将*.o打包到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
% 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