discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Error while compiling a processing block


From: Karthik Vijayraghavan
Subject: Re: [Discuss-gnuradio] Error while compiling a processing block
Date: Fri, 31 Oct 2008 21:17:43 -0700


On Fri, Oct 31, 2008 at 8:23 PM, Francesco B. <address@hidden> 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);
};
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]