Hi Marcus,

You're right. I didn't clarify the problem.

Actually in C++, I wrote:

block_impl::block_impl(bool normal, int group)
      : gr::block("phich_grouping",
                  gr::io_signature::make(1, group * N_FS(normal), sizeof
(gr_complex)),
              gr::io_signature::make(1, 1, sizeof(gr_complex))),

// N_FS function returns 8 or 4 depends on its input.
// in the work function :
// d_normal and d_group are defined in the .h file


const gr_complex *in[d_N_phich_group * N_FS_phich(d_normal_cp)];
for (int i=0; i<d_group * N_FS(d_normal); i++)
        {
            in[i] = (const gr_complex *) input_items[i];
}


when I set the "group" value to 3, the number of input ports would be 24.
In this case, I want to access to one element of "in" like this:

cout << " in " << in[0][0] << endl;

I got the aforementioned error!

But when I set "group = 1" which means 8 input ports, all things are fine.


any idea please,

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

Reply via email to