dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #02971
Re: Recursive include in SWIG
On Wed, Aug 09, 2006 at 12:26:03PM +0200, Anders Logg wrote:
> Is there a way to recursively include stuff in SWIG so we don't need
> to list every single file in dolfin.i? It should be enough to include
> dolfin_la.h for example.
>
> /Anders
Yes, there's an option "-includeall" which follows all include
statements (not sure if it recurses beyond that). The problem is that
then SWIG will start parsing and wrapping almost everything,
i.e. system headers, PETSc, uBlas, etc. This will lead to an error
(SWIG can't parse the uBlas headers for example), or at least to a
very bloated PyDOLFIN.
I think the best solution right now is to specify the headers
individually.
Johan
Follow ups
References