[capi-sig] Compiling/Linking external Functions (setup.py, distutils, gcc?)

Carsten Haese carsten.haese at gmail.com
Wed Nov 19 18:25:30 CET 2008

On Wed, Nov 19, 2008 at 12:00 PM, Philipp Heuser <philipp at achtziger.de>wrote:

> where within these setup.py files do I have to mention the ./ext_foo.a ?
> When I do place it in the sources-tag, setup procedure complains that it
> doesn't know any .a files... if I don't mention it explicitly, just giving
> the include_dirs, compilation works fine, but when importing from python
> 'import wrap' I do get the message: Symbol not found: _foo

The "sources" parameter lists source files that need to be compiled. Your
ext_foo.a doesn't need to be compiled; it just needs to be linked. Try
adding a parameter link_objects=['ext_foo.a'] to the Extension(...)


Carsten Haese

More information about the capi-sig mailing list