一个简单的C程序,在编译时候用到了连接库
结果报了如下错误:
/usr/bin/ld: splogselect: hidden symbol `fstat' in /usr/lib/libc_nonshared.a(fstat.oS) is referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [splogselect.exe] Error 1
在google上查了半天,有人说 在编译的时候要加个 -shared,
试了一下的确可以编译通过,但编译好的程序不能执行,
报“Segmentation fault”错误
有人遇到过这种问题吗?


maidoumac 于 2013-08-16 16:03:36发表:
新手进来给你添人气
dsioa 于 2013-07-17 15:36:34发表:
hello
于 2013-07-17 10:09:15发表:
加shared确实不可行