Prototype for make() does not match any in class

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

On Thu, Jun 19, 2014 at 3:47 PM, Hoang Ngo K.
[email protected]
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs