On Fri, Oct 31, 2008 at 8:23 PM, Francesco B. <[EMAIL PROTECTED]> wrote:
> > Here's the .i file I was using: > http://www.nabble.com/file/p20277262/randsig.i randsig.i > > Based on what you said, I changed the line "randsig_source_ff_sptr > randsig_make_source_ff ();" to "randsig_source_ff_sptr > randsig_make_source_ff (double sampling_freq);", and "randsig_source_ff > ();" > to "randsig_source_ff (double sampling_freq);" > > The same error messages are present. > > > > Karthik Vijayraghavan wrote: > > > > Did you make the appropriate changes to the .i files ? You also need to > > include your .h file in Makefile.am if I am not mistaken. > > > > In randsig.i you need to have something like > > > > #include "randsig_source_ff.h" > > > > GR_SWIG_BLOCK_MAGIC(randsig,source_ff); > > > > randsig_source_ff_sptr randsig_make_source_ff(double sampling_freq); > > > > class randsig_source_ff : public gr_sync_block > > { > > private: > > > > public: > > Whatever you want to access from outside > > }; > > > > Karthik > Change it as below GR_SWIG_BLOCK_MAGIC(randsig,source_ff); randsig_source_ff_sptr randsig_make_source_ff (double sampling_freq); class randsig_source_ff : public gr_block { private: randsig_source_ff (double sampling_freq); };
_______________________________________________ Discuss-gnuradio mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
