compile error on SWIG file

Markus von Ehr markus.vonehr at ipm.fhg.de
Mon Sep 9 10:03:58 CEST 2002


Hi,

compiling my c-file generated from SWIG
(swig -c -python -o mvelib.c mvelib.i)
with a setup-file, I receive the error:

c:\programme\vc98\include\eh.h(32) : fatal error C1189: #Error: "eh.h
is only for C++!"

Anybody knows what I have to change???

Thanks Markus


****************************
setup.py
****************************
from distutils.core import setup, Extension

setup (name = "mvelib",
        version = "1.0",
        maintainer = "Markus von Ehr",
        maintainer_email = "markus.vonehr at ipm.fhg.de",
        description = "mvelib Python module",

        ext_modules = [Extension('mvelib',sources=['mvelib.c'])]
 )



More information about the Python-list mailing list