drmpeg / gr-dvbc

A DVB-C transmitter for GNU Radio
GNU General Public License v3.0
9 stars 4 forks source link

Fixed compilation with new C++ compilers #1

Closed Manawyrm closed 6 years ago

Manawyrm commented 6 years ago

Hi,

compilation of this modules fails on newer C++ compilers (like the one currently shipped with ArchLinux). This pull request changes the syntax and fixes the issue.

Best regards, Tobias

drmpeg commented 6 years ago

Thanx for pointing this out. It also fails with Ubuntu 18.04 and gcc 7.3.0. Instead of using your patch, I've pushed a fix that uses gr_complex instead. This is what I use in the GNU Radio mainline (and should have used here). The gr_complex typedef (in gnuradio-runtime/include/gnuradio/gr_complex.h) is:

#include <complex>
typedef std::complex<float>         gr_complex;
Manawyrm commented 6 years ago

Very nice, thanks :)