[Pythonmac-SIG] RPy and libR.dylib

Marcel Prastawa prastawa@cs.unc.edu
Thu, 7 Mar 2002 20:53:53 -0500 (EST)


On Thu, 7 Mar 2002, Gerry Brush wrote:

> ImportError: dyld: python multiple definitions of symbol _main
> python definition of _main
> libR.dylib(system.lo) definition of _main
> Failure linking new module

I think that you could work around this by building R (libR.dylib) as a
two-level namespace binary. I am not familiar with R, so I couldn't be of
much help. You can try removing the "-flat_namespace -undefined suppress"
flags from the Makefile (if there is one).

Apple has a tech note on two-level namespace binaries, should be available
from http://developer.apple.com

Marcel