nresolved external symbol PyInit_pytry code example
Example: LINK : error LNK2001: unresolved external symbol PyInit___init__
#!/usr/bin/env python
from setuptools import setup, Extension
from Cython.Build import cythonize
ext_modules = cythonize([
Extension("amortization.amount", ["amortization/amount.py"]),
Extension("amortization.schedule", ["amortization/schedule.py"]),
Extension("amortization.amortize", ["amortization/amortize.py"]),
])
setup(
ext_modules=ext_modules
)
1234567891011121314