# Prototype for make() does not match any in class

**URL:** <https://www.ruby-forum.com/t/prototype-for-make-does-not-match-any-in-class/230468>\
**Category:** GNU Radio\
**Created:** [June 19, 2014, 9:48am UTC](https://www.ruby-forum.com/t/prototype-for-make-does-not-match-any-in-class/230468 "2014-06-19T09:48:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 19, 2014, 9:48am UTC](https://www.ruby-forum.com/t/prototype-for-make-does-not-match-any-in-class/230468/1 "2014-06-19T09:48:31Z")

</div>

Dear all,

I’m writing an out-of-tree C++ block performing some PSK mapping method  
(BPSK, QPSK. 16PSK, 256PSK). I got this error when running make command:

/home/khachoang/gr-Hoang/lib/Digital\_Mapper\_impl.cc:36:5: error:  
prototype

> for ‘gr::Hoang::Digital\_Mapper::sptr gr::Hoang::Digital\_Mapper::make(int)’  
> does not match any in class ‘gr::Hoang::Digital\_Mapper’  
> /home/khachoang/gr-Hoang/include/Hoang/Digital\_Mapper.h:49:19: error:  
> candidate is: static gr::Hoang::Digital\_Mapper::sptr  
> gr::Hoang::Digital\_Mapper::make()

I have tried but still do not know where this error from. Could anyone  
help  
me to fix it?

My header file:

#ifndef INCLUDED\_HOANG\_DIGITAL\_MAPPER\_IMPL\_H

> ```
> private:
> gr_vector_const_void_star &input_items,
> gr_vector_void_star &output_items);
> };
> 
> ```
> 
> } // namespace Hoang  
> } // namespace gr  
> #endif /\* INCLUDED\_HOANG\_DIGITAL\_MAPPER\_IMPL\_H \*/

My implementation file:

#ifdef HAVE\_CONFIG\_H

> ```
> Digital_Mapper::sptr
> {
> }
> /* <+forecast+> e.g. ninput_items_required[0] = noutput_items */
> 
> ```
> 
> exceed)];  
> }  
> ni++;  
> no += 8/log(d\_mapping\_mode);  
> }  
> consume\_each(ni);  
> return no;  
> }  
> } /\* namespace Hoang _/  
> } /_ namespace gr \*/

My xml file:

\<?xml version="1.0"?\>

> ```
> <type>enum</type>
> <key>16</key>
> 
> ```
> 
> sym\_out complex

Many thanks.  
Hoang

---

<div class="post-metadata">

**Author:** ![Hoang\_Ngo\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/97f17d/32.png) [@Hoang\_Ngo\_K](https://www.ruby-forum.com/u/Hoang_Ngo_K)\
**Post date:** [June 19, 2014, 10:25am UTC](https://www.ruby-forum.com/t/prototype-for-make-does-not-match-any-in-class/230468/2 "2014-06-19T10:25:57Z")

</div>

On Thu, Jun 19, 2014 at 3:47 PM, Hoang Ngo K.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > candidate is: static gr::Hoang::Digital\_Mapper::sptr  
> > gr::Hoang::Digital\_Mapper::make()

Chances are, when you created this block using gr\_modtool, you didn’t  
specify any argument.  
But later you decided to add the argument “int mapping\_mode”, you did  
this  
by amending “Digital\_Mapper\_impl.h” and “Digital\_Mapper\_impl.cc” but  
forgotten to look into the file “include/Hoang/Digital\_Mapper.h”

If this is the case, the easiest solution is to remove and recreate this  
block, both by using gr\_modtool, but ensure to specify the argument “int  
maping\_mode” during the block creation wizard.
