# PROBLEM: Making a new signal processing block

**URL:** <https://www.ruby-forum.com/t/problem-making-a-new-signal-processing-block/125157>\
**Category:** GNU Radio\
**Created:** [January 6, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/problem-making-a-new-signal-processing-block/125157 "2008-01-06T12:04:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas\_Gacrama](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9e8a1a/32.png) [@Jonas\_Gacrama](https://www.ruby-forum.com/u/Jonas_Gacrama)\
**Post date:** [January 6, 2008, 12:04pm UTC](https://www.ruby-forum.com/t/problem-making-a-new-signal-processing-block/125157/1 "2008-01-06T12:04:51Z")

</div>

I have tried to make a new signal processing block which that is called  
divcom. It is a diversity combining technique used to mitigate the  
effects  
of multi-path fading. I am trying to implement this algorithm using GNU  
Radio.

I made my signal processing block and I now wish to integrate this to  
the  
GNU Radio’s library. Unfortunately, I always  
get the following error message upon “MAKEing” (The message below is  
truncated.)

divcom\_rca\_ff.cc: In function 'divcom\_rca\_ff\_sptr  
divcom\_make\_rca\_ff(const  
std::vector\<float, std::allocator \>&, const std::vector\<float,  
std::allocator \>&, const std::vector\<float, std::allocator

> &)':  
> divcom\_rca\_ff.cc:38: error: cannot allocate an object of abstract type  
> ‘divcom\_rca\_ff’  
> ./divcom\_rca\_ff.h:45: note: because the following virtual functions  
> are  
> pure within ‘divcom\_rca\_ff’:  
> /usr/local/include/gnuradio/gr\_block.h:113: note: virtual int  
> gr\_block::general\_work(int, gr\_vector\_int&, gr\_vector\_const\_void\_star&,  
> gr\_vector\_void\_star&)  
> make[4]: \*\*\* [divcom\_rca\_ff.lo] Error 1

I did the steps found in this website (  
[http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html](http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html)) and I  
just changed a few bits of the code.

My question therefore is this. Could I not allocate a NEW CLASS TYPE (in  
this case divcom\_rca\_ff) since the function general\_work from the base  
class  
gr\_block is a PURE VIRTUAL CLASS?

Thanks!
