← Back to team overview

dolfin team mailing list archive

Re: pydolfin compile problems

 

On Thu, Jan 25, 2007 at 10:30:11AM +0100, Ola Skavhaug wrote:
> It seems like the swig generated wrapper code for dolfin does no longer
> compile. I use swig version 1.3.29 and g++ version 4.1.2, all on a 64 bit
> ubuntu edgy platform.
> 
> 
> The SWIG error is related to a va_list. Compile crash:
> 
> [...]
> 
> dolfin_wrap.cpp:9346: error: ISO C++ forbids assignment of arrays
> dolfin_wrap.cpp: In function 'PyObject* _wrap_new_Function__SWIG_3(PyObject*,
> PyObject*)':
> 
>
> What's going on here? The problem seems to be in the Logger class.
> 

Sorry, I also encountered this, but I missed checking in the
fix. You're right, SWIG generates illegal code for varargs (only seems
to show up on 64-bit architectures).

The reason it's showing up now is because now SWIG generates code for
the whole DOLFIN interface, previously we manually specified which
header files it should parse. The fix is to let SWIG ignore Logger for
now, since we don't need it.

  Johan


References