[C++-sig] [Swig-user] Why this does not work- overriding C++ virtualfunctions in python script?
Roman Yakovenko
roman.yakovenko at gmail.com
Wed May 9 05:51:04 CEST 2007
I have nothing again SWIG, but can you move this discussion to its mailing list?
It has nothing to do with Boost.Python.
Thanks
On 5/9/07, Bruce Who <bruce.who.hk at gmail.com> wrote:
> I add #include<exception> in the generated .cxx file and removed std
> namespace before exceptions and it compiles. I donnot know why. But my
> code still doesnot work! My OnEvent() event is still not called. Does
> that mean director doesnot work for me?
>
> On 5/9/07, Sohail Somani <s.somani at fincad.com> wrote:
> > You probably need to #include <stdexcept> or <exception> in the
> > generated code.
> >
> > > -----Original Message-----
> > > From: swig-user-bounces at lists.sourceforge.net
> > > [mailto:swig-user-bounces at lists.sourceforge.net] On Behalf Of
> > > Bruce Who
> > > Sent: Tuesday, May 08, 2007 6:13 PM
> > > To: Nitro
> > > Cc: swig-user; c++-sig of python
> > > Subject: Re: [Swig-user] Why this does not work- overriding
> > > C++ virtualfunctions in python script?
> > >
> > > Hi, Nitro
> > >
> > > Thanks for your clue. I've added "directors" to my .i file:
> > >
> > > %module(directors="1") cmod
> > > %feature("director");
> > >
> > > but it seems that Visual Studio2005 doesnot support this, and it fails
> > > to compile:
> > >
> > > f:\swigproj\cmod_wrap.cxx(2733) : error C2039: 'unexpected_handler' :
> > > is not a member of 'std'
> > > f:\swigproj\cmod_wrap.cxx(2734) : error C2039: 'unexpected_handler' :
> > > is not a member of 'std'
> > >
> > > I look at the source code and find that it has something to do with
> > > directors. Is there any workaround?
> > >
> > > On 5/8/07, Nitro <nitro at dr-code.org> wrote:
> > > > Am 08.05.2007, 14:20 Uhr, schrieb Bruce Who
> > > <bruce.who.hk at gmail.com>:
> > > >
> > > >>
> > > >
> > > > Read the "directors" part of the manual.
> > > >
> > > > -Matthias
> > > >
> > >
> > > --------------------------------------------------------------
> > > -----------
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Swig-user mailing list
> > > Swig-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/swig-user
> > >
> >
>
> Bruce
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list