- Code: Select all
from Cython.Distutils import build_ext
from distutils.core import setup
from distutils.extension import Extension
import sys
# make setup do what we want,
# build extension modules in place
sys.argv.append('build_ext')
sys.argv.append('--inplace')
setup(
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("helloworld", ["Test.pyx"], include_dirs=["/usr/include/panda3d"], language="c++")])
and I have this script to import and run it.
- Code: Select all
import panda3d
from panda3d.core import Vec3
from panda3d.core import Geom
import Test
print("Hi")
But I get the error:
- Code: Select all
ImportError: /media/Storage/Dokumente/Programeering/Cython Testing/src/Test.so: undefined symbol: _ZTI11TypedObject
I noticed in the blog entry another user had the same problem (This one) But he still doesn't have an answer.
I'm on linux with cython0.14. Any help would be appreciated.

