May be there is a way to instruct gccxml not to parse some include file?<br>B.<br><br><div class="gmail_quote">2009/2/26 Roman Yakovenko <span dir="ltr">&lt;<a href="mailto:roman.yakovenko@gmail.com">roman.yakovenko@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/2/26 โฯาษำ ๋มฺมหฯื &lt;<a href="mailto:boris.kazakov@gmail.com">boris.kazakov@gmail.com</a>&gt;:<br>

<div><div></div><div class="Wj3C7c">&gt; Hi I&#39;t trying to parse relatevely simple file with py++ (pyplusplus_gui):<br>
&gt;<br>
&gt; here is header file:<br>
&gt;<br>
&gt; #pragma once<br>
&gt; #include &lt;boost/python.hpp&gt;<br>
&gt; typedef boost::python::object pyobject;<br>
&gt; pyobject gaussian_diffs(pyobject imarray, double sigma);<br>
&gt;<br>
&gt; It fails with plenty of errors:<br>
&gt;<br>
&gt; Error occured during code generation process!<br>
&gt; Error:<br>
&gt; Error occured while running GCC-XML: In file included from<br>
&gt; /usr/include/boost/type_traits/composite_traits.hpp:17,<br>
&gt; šššššššššššššššš from /usr/include/boost/function/function_base.hpp:24,<br>
&gt; šššššššššššššššš from /usr/include/boost/function/detail/prologue.hpp:17,<br>
&gt; šššššššššššššššš from /usr/include/boost/function/function_template.hpp:13,<br>
&gt; šššššššššššššššš from<br>
&gt; /usr/include/boost/function/detail/maybe_include.hpp:13,<br>
&gt; šššššššššššššššš from /usr/include/boost/function/function0.hpp:11,<br>
&gt; šššššššššššššššš from /usr/include/boost/python/errors.hpp:13,<br>
&gt; šššššššššššššššš from /usr/include/boost/python/handle.hpp:11,<br>
&gt; šššššššššššššššš from /usr/include/boost/python/args_fwd.hpp:10,<br>
&gt; šššššššššššššššš from /usr/include/boost/python/args.hpp:10,<br>
&gt; šššššššššššššššš from /usr/include/boost/python.hpp:11,<br>
&gt; šššššššššššššššš from /home/borsh/workspace/pyitk/gaussian_diffs.hxx:2:<br>
&gt; and much more.<br>
&gt;<br>
&gt; Is this excpected behaviour or should I try to update something? I&#39;m using<br>
&gt; gccxml-cvs 20081124<br>
&gt; pygccxml 1.0.0<br>
&gt; py++ 1.0.0<br>
&gt; boost 1.37.<br>
<br>
</div></div>There is nothing to update :-(<br>
<br>
GCCXML is another compiler and not all Boost code could be compiled under it.<br>
You have the following choices:<br>
* to create patch and submit it to Boost<br>
* to re-arrange your code, so the problematic file is not included.<br>
<br>
HTH<br>
<font color="#888888"><br>
--<br>
Roman Yakovenko<br>
C++ Python language binding<br>
<a href="http://www.language-binding.net/" target="_blank">http://www.language-binding.net/</a><br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a></font></blockquote></div><br>