[R-SIG-Mac] problem with SHLIB
Thibault Helleputte
thibault.helleputte at uclouvain.be
Fri Dec 19 11:22:21 CET 2008
Hello,
I'm using R 2.8.0 on a Macbook Pro running Tiger on it.
I have a simple C file named hello.c and when I try to generate the .so
file like that:
$ R CMD SHLIB hello.c
I get the following output:
gcc -arch i386 -std=gnu99
-I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386
-I/usr/local/include -fPIC -g -O2 -c hello.c -o hello.o
gcc -arch i386 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names
-mmacosx-version-min=10.4 -undefined dynamic_lookup -single_module
-multiply_defined suppress -L/usr/local/lib -o hello.so hello.o
-F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
-Wl,CoreFoundation
/usr/bin/libtool: for architecture cputype (16777223) cpusubtype (3)
object: /usr/local/lib/libgcc_s.10.4.dylib malformed object (unknown
load command 4)
make: *** [hello.so] Error 1
What is this error? How can I fix it?
Thank you
Thibault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thibault_helleputte.vcf
Type: text/x-vcard
Size: 420 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20081219/886e3b23/attachment.vcf>
More information about the R-SIG-Mac
mailing list