discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] \"make\" error while making detector (howto_detec


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] \"make\" error while making detector (howto_detect_ff) block.
Date: Wed, 01 Apr 2015 10:14:13 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Abhishek,

that guide refers to a somewhat outdated API, so it doesn't apply to
your case (that guide refers to an architecture where there was no
separate _impl class).

Have you read the guided tutorials and their chapter on C++ blocks? It's
explaining how you can add functions to blocks.
I'd personally recommend just starting anew, sticking to the guided
tutorials; wherever you got your guidance from, it mixes things that
apply to different versions of GNU Radio, and debugging this is really
not worth it when you could as well just start with a clean slate and
learn things *right*.

Best regards,
Marcus
On 04/01/2015 06:28 AM, abhishek wrote:
> hey marcus,
> here error given is, could not insert function, but we can according
> to
> "http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide#Public-Header-Files";.
> Even i am not able to get last and second last error of expected "("
> and "{", but in the code all brackets are up to the mark and used
> properly.
>
> address@hidden:~/gr-howto/build$ make
> Scanning dependencies of target gnuradio-howto
> [  5%] Building CXX object
> lib/CMakeFiles/gnuradio-howto.dir/howto_detect_ff_impl.cc.o
> In file included from
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:27:0:
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:40:7: error:
> ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int,
> int)’ cannot be overloaded
>        howto_detect_ff_impl(float pfa, int L, int samples);
>        ^
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:37:6: error: with
> ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int, int)’
>       howto_detect_ff_impl (float pfa, int L, int samples);
>       ^
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:37:27: error:
> prototype for ‘gr::howto::howto_detect_ff::sptr
> gr::howto::howto_detect_ff::make(float, int, int)’ does not match any
> in class ‘gr::howto::howto_detect_ff’
>      howto_detect_ff::sptr howto_detect_ff::make(float pfa, int L, int
> samples)
>                            ^
> In file included from
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:24:0,
>                  from
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:27:
> /home/abhishek/gr-howto/include/howto/howto_detect_ff.h:49:19: error:
> candidate is: static gr::howto::howto_detect_ff::sptr
> gr::howto::howto_detect_ff::make()
>        static sptr make();
>                    ^
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc: In constructor
> ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int, int)’:
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:57:71: warning:
> extended initializer lists only available with -std=c++11 or
> -std=gnu++11 [enabled by default]
>                gr::io_signature::make (MIN_OUT, MAX_OUT, sizeof(float)),
> ^
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:66:5: error:
> expected ‘)’ before ‘(’ token
>      (howto_detect_ff_impl()::~howto_detect_ff_impl())
>      ^
> /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:187:1: error:
> expected ‘{’ before ‘}’ token
>  }   /* namespace howto */
>  ^
> make[2]: ***
> [lib/CMakeFiles/gnuradio-howto.dir/howto_detect_ff_impl.cc.o] Error 1
> make[1]: *** [lib/CMakeFiles/gnuradio-howto.dir/all] Error 2
> make: *** [all] Error 2
>
> Could you please help me out with all individual errors. Attachment of
> al the 3 files are provided.
> Thanks in advance,
> Abhishek.




reply via email to

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