[swig] utilisation de ld sous mac osX tiger.
Bonjour,
Je souhaite utiliser swig sous mac OSX tiger, mais j'obtiens une erreur lors de la création de la librairie :
Code:
1 2 3
| ImportError: dlopen(./_libhello.so, 2): Symbol not found: dyld_stub_binding_helper
Referenced from: ./_libhello.so
Expected in: flat namespace |
Je compile avec :
Code:
1 2 3
| swig -python hello.i
gcc -c hello.c hello_wrap.c -I/usr/include/python2.3
ld -bundle -flat_namespace -undefined suppress -o _libhello.so hello.o hello_wrap.o |
Si vous avez une ligne de commande fonctionnelle pour la phase ld, je suis preneur ;-)
Merci d'avance.
PyBio