On 2/8/07, Alexander Eisenhuth &lt;<a href="mailto:newsuser@stacom-software.de">newsuser@stacom-software.de</a>&gt; wrote:<br>&gt; Hello,<br>&gt; <br>&gt; Py++: 0.8.5<br>&gt; Compiler: VC6.0<br>&gt; GCC-XML version 0.6.0<br>
&gt; <br>&gt; I tried Py++ GUI. The generated Boost.Python C++ code couldn&#39;t be compiled. Reason:<br>&gt; <br>&gt; (VC compile error):<br>&gt; &lt;file location generated code&gt; :<br>&gt; error C2352: &#39;Math::Math_E::what&#39; : illegal call of non-static member function
<br>&gt; &lt;file location header&gt; : see declaration of &#39;what&#39;<br>&gt; <br>&gt; Coresponding Codesnips:<br>&gt; <br>&gt; &lt;generated code&gt; :<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtual char const * what(&nbsp;&nbsp;) const&nbsp;&nbsp;{<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if( bp::override func_what = this-&gt;get_override( &quot;what&quot; ) )
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return func_what(&nbsp;&nbsp;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return Math::Math_E::what(&nbsp;&nbsp;); // (wrong, not static)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br><br>You didn&#39;t provide enough details, but I think I can make reasonable assumption.
<br><br>First of all &quot;what&quot; function belong to Math_E_wrapper class<br><br>struct Math_E_wrapper : Math::Math_E, boost::python::wrapper&lt;Math::Math_E&gt;<br><br>Am I right?<br><br>If so, than the line &quot;return Math::Math_E::what(&nbsp;&nbsp;); &quot; should be interpreted by compiler
<br>as a call to base class member function. I think can fix the error by changing generated<br>code to be &quot;return this-&gt;Math::Math_E::what(&nbsp;&nbsp;);&quot;<br><br>Can you test it?<br><br>Take a look on tutorials( <a href="http://www.boost.org/libs/python/doc/tutorial/doc/html/python/exposing.html#python.virtual_functions_with_default_implementations">
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/exposing.html#python.virtual_functions_with_default_implementations</a> )<br>The generated code is not that different.<br><br>&gt; &lt;header&gt; :<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtual const char * what () const;
<br><br>&gt; At stdout there are a lot of warnings ... but they seems not be related on what.<br>&gt;&nbsp;&nbsp; What is the reason?<br><br>I don&#39;t understand the question, can you explain what do you mean?<br><br>P.S. If it is possible than switch to MSVC 
7.1 compiler. It is much better.<br><br>-- <br>Roman Yakovenko<br>C++ Python language binding<br><a href="http://www.language-binding.net/">http://www.language-binding.net/</a><br>