discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Build C++ processing blocks with input parameters


From: Gabriele Galiero
Subject: [Discuss-gnuradio] Build C++ processing blocks with input parameters
Date: Tue, 14 Jul 2015 16:53:53 +0200

I have been trying to build an easy block called mutiply_ff, having an
input parameter int multiple. The block is meant to multiply each
element of the input streams by the parameter multiple.

I am getting one error when:

mkdir build
cd build
cmake ../
make (Here I get ERROR!)

This is the error:

[  5%] Building CXX object
lib/CMakeFiles/gnuradio-gabri.dir/multiply_ff_impl.cc.o
In file included from
/home/comlab/Desktop/Gabri/mimo/gr-gabri/lib/multiply_ff_impl.h:24:0,
                 from
/home/comlab/Desktop/Gabri/mimo/gr-gabri/lib/multiply_ff_impl.cc:26:
/home/comlab/Desktop/Gabri/mimo/gr-gabri/include/gabri/multiply_ff.h:49:24:
error: ‘multiple’ has not been declared
       static sptr make(multiple);
                        ^
/home/comlab/Desktop/Gabri/mimo/gr-gabri/lib/multiply_ff_impl.cc:31:23:
error: prototype for ‘gr::gabri::multiply_ff::sptr
gr::gabri::multiply_ff::make(unsigned int)’ does not match any in class
‘gr::gabri::multiply_ff’
     multiply_ff::sptr multiply_ff::make(unsigned multiple)
                       ^
In file included from
/home/comlab/Desktop/Gabri/mimo/gr-gabri/lib/multiply_ff_impl.h:24:0,
                 from
/home/comlab/Desktop/Gabri/mimo/gr-gabri/lib/multiply_ff_impl.cc:26:
/home/comlab/Desktop/Gabri/mimo/gr-gabri/include/gabri/multiply_ff.h:49:19:
error: candidate is: static gr::gabri::multiply_ff::sptr
gr::gabri::multiply_ff::make(int)
       static sptr make(multiple);
                   ^
make[2]: *** [lib/CMakeFiles/gnuradio-gabri.dir/multiply_ff_impl.cc.o]
Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-gabri.dir/all] Error 2
make: *** [all] Error 2


I attach the lib files where the function is implemented.
Any help or tip is welcome. Thanks in advance.

Attachments:
http://www.ruby-forum.com/attachment/10912/multiply_ff_impl.cc
http://www.ruby-forum.com/attachment/10913/multiply_ff_impl.h


-- 
Posted via http://www.ruby-forum.com/.


reply via email to

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