我正在为Python构建一个C++扩展程序。在编译过程中,当一个类型:
python setup.py build_ext -i
是什么原因导致了这个问题,我该如何解决?
顺便提一下,以下是我的设置文件的副本:
#!/usr/bin/env python
"""
setup.py file for SWIG example
"""
from distutils.core import setup, Extension
example_module = Extension('_foolib',
sources=['example_wrap.cxx',
'../wrapper++/src/Foo.cpp'
],
libraries=["foopp"]
)
setup (name = 'foolib',
version = '0.1',
author = "Me, Myself and I",
description = """Example""",
ext_modules = [example_module],
py_modules = ["example"],
)
我在Ubuntu上使用gcc 4.4.3。