logo       

Re: Precompiled Headers: msg#00115

programming.swig

Subject: Re: Precompiled Headers

Unfortunately none of the code insertion blocks will insert code at
the top of the wrapper file. If there is no SWIG mechanism for this I
can always create a wrapper file for the wrapper file and include all
project specific includes in it. For example:

#include "precompiled.h"

//Include the SWIG generated wrapper
#include "foo_wrap.cxx"

I am trying to avoid this so if anyone has any other suggestions I am all ears.

Thanks,
BSMatt


On Thu, 16 Sep 2004 10:04:14 -0400 (EDT), Josh Cherry
<jcherry@xxxxxxxxxxxxxxxx> wrote:
>
>
>
> On Thu, 16 Sep 2004, Brian Matt wrote:
>
> > I am including multiple wrapper files generated by SWIG into a project
> > that uses precompiled headers. Unfortunately I can't figure out how to
> > insert the #include "precompiled.h" line are the beginning of the
> > generated wrapper file. When I place it in the .i file in a %{ %}
> > section it places the line below a bunch of code which won't compile
> > correctly. Is there a way to force code at the beginning of the
> > wrapper file?
>
> As discussed at http://www.swig.org/Doc1.3/SWIG.html#SWIG_nn40, code can
> be inserted in various places. Perhaps %runtime will put it early enough
> for your purposes.
>
> Josh
>
> --
> Joshua L. Cherry, Ph.D.
> NCBI/NLM/NIH (Contractor)
> jcherry@xxxxxxxxxxxxxxxx
> _______________________________________________
> Swig maillist - Swig@xxxxxxxxxxxxxxx
> http://mailman.cs.uchicago.edu/mailman/listinfo/swig
>
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise