[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Trouble with PMTs

From: Jonathan Fox
Subject: [Discuss-gnuradio] Trouble with PMTs
Date: Sun, 18 Jan 2015 18:28:39 -0500

I'm updating older code from using the old streaming messaging to the new and improved message passing and PMTs. However I am getting an error compiling.

Here is the code snippet:

void energy_detector_sink_f_impl::send_to_message_p(float *out, int items_consumed) {
        pmt::pmt_t msg = pmt::cons(
                              const pmt::pmt_t out,
                              const pmt::pmt_t sizeof(float)*items_consumed
        message_port_pub(d_outfreq, msg);

and the error:

/home/fox/git_repos/custom_modules/gr-specsense/lib/energy_detector_sink_f_impl.cc: In member function ‘void gr::specsense::energy_detector_sink_f_impl::send_to_message_p(float*, int)’:
/home/fox/git_repos/custom_modules/gr-specsense/lib/energy_detector_sink_f_impl.cc:147: error: expected primary-_expression_ before ‘const’
/home/fox/git_repos/custom_modules/gr-specsense/lib/energy_detector_sink_f_impl.cc:148: error: expected primary-_expression_ before ‘const’
make[2]: *** [lib/CMakeFiles/gnuradio-specsense.dir/energy_detector_sink_f_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-specsense.dir/all] Error 2
make: *** [all] Error 2

By no means do I consider myself an expert in C++ so I am not really sure if this is a PMT problem or not but because PMTs are involved it makes troubleshooting via Google a little trickier.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]