libgcc.a和libgcc_s.a之间的区别? [英] Difference between libgcc.a and libgcc_s.a?
问题描述
我们在AIX 6.1上使用RPM文件安装了GCC和 libgcc
。
We have installed GCC and libgcc
on AIX 6.1 using the RPM files.
想知道为什么libgcc_s.a不是在以下文件夹下创建的?
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/
是该文件夹中的 libgcc.a
,但不是 libgcc_s.a
,并且链接器似乎需要该libgcc_s.a文件在那里
There is a libgcc.a
in that folder but not libgcc_s.a
and the linker seems to want that libgcc_s.a file there
我想问的原因是,如果我尝试在AIX 6.1上创建一个简单的hello world类型的共享库,它会抱怨并且说像之类的东西不能找到libgcc_s.a
。
Reason I ask is if I try create a simple "hello world" type shared lib on AIX 6.1 it complains and says someting like "cannot find libgcc_s.a"
.
我运行了如下命令:
I have run a command like:
find / -name '*libgcc*' -print 2>/dev/null
尝试在tha机器上找到libgcc_s.a,但没有任何东西; - (
to try find libgcc_s.a on tha machine but there is nothing ;-(
任何想法我都可以得到 libgcc_s。一个
到AIX机器上?
Any idea how I can get libgcc_s.a
onto the AIX machine?
推荐答案
ry使用 -static-libgcc
选项进行编译。
You might try to compile using the option -static-libgcc
.
这篇关于libgcc.a和libgcc_s.a之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!