logo       

Re: Precompiled Headers: msg#00114

programming.swig

Subject: Re: Precompiled Headers


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



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

News | FAQ | advertise