compile error on SWIG file

Lyle Johnson lyle at users.sourceforge.net
Mon Sep 9 10:38:35 EDT 2002


Markus von Ehr wrote:

> 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?

Is it a C++ library that you're wrapping (sounds that way)? If so, you'd 
want to run SWIG with the -c++ option to tell it that.




More information about the Python-list mailing list