help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#define conflict with swig


From: jon
Subject: #define conflict with swig
Date: Sun, 21 Aug 2005 11:09:43 -0500
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)

   I've been attempting to embed both octave and python in a third program
using the swig interface generator. Using the usual oct.h includes in an octave.i
file, I get

address@hidden:~/develop/octave-py $ swig -c++   -python octave.i
octave/config.h:768: Error: Macro 'DYNAMIC_CAST' redefined,
/usr/share/swig1.3/swig.swg:382: Error: previous definition of 'DYNAMIC_CAST'.

It appears part of the magic swig does uses DYNAMIC_CAST cleverly, and that
collides with octave's version.

Is there anything to do other than getting octave sources, and rebuilding after using sed to effect a s/DYNAMIC_CAST/_DYNAMIC_CAST/g on the whole octave source tree ? That would probably work, but make the project unmaintainable.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]