Re: [Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Eric Blossom
On Thu, Sep 13, 2007 at 03:10:17PM -0400, Dawei Shen wrote: > Hi, Eric > > I didn't put the nested class in the .i file, only the upper-level block > class, which produced the error (adding it doesn't solve it either). Maybe I > just shouldn't nest C++ classes when I use SWIG? Thank you. > > Dawe

Re: [Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Dawei Shen
Hi, Eric I didn't put the nested class in the .i file, only the upper-level block class, which produced the error (adding it doesn't solve it either). Maybe I just shouldn't nest C++ classes when I use SWIG? Thank you. Dawei On 9/13/07, Eric Blossom <[EMAIL PROTECTED]> wrote: > > On Thu, Sep 13,

Re: [Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Eric Blossom
On Thu, Sep 13, 2007 at 02:54:16PM -0400, Dawei Shen wrote: > Hey, Guys > > I encountered a programming problem when I tried to build a new block. I > defined a subclass inside my block class, which looks like: > > class my_block : gr_block{ > class my_subclass { > sub_class details > }

[Discuss-gnuradio] a programming question about building a block

2007-09-13 Thread Dawei Shen
Hey, Guys I encountered a programming problem when I tried to build a new block. I defined a subclass inside my block class, which looks like: class my_block : gr_block{ class my_subclass { sub_class details } } Well, this my_subclass is part of my implementation, all its member functio