Just add the new variable to each file:

/lib/coolblock_xx_impl.cc (3 places, make, new and constructor)
/lib/coolblock_xx_impl.h (1 place, constructor)
/include/project/coolblock_xx.h (1 place, make)
/grc/project_coolblock_xx.xml (1 place, <make>)

Super important step! Delete your entire build directory with rm -rf *
and do a clean cmake before you rebuild.

Ron

On 04/16/2015 02:28 PM, Richard Bell wrote:
Hello all,

I created a C++ block using gr_modtool in which I declared one variable in the argument list initially. I now want to update this block to take more arguments. What is the recommended way of going about this?

My current flow in this situation is to start over. Make a new block with gr_modtool and copy paste the existing code into the new block files with updates to the arguments. This is error prone.

How do you experienced developers handle this?

v/r,
Rich



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to