bastibl / gr-rds

FM RDS/TMC Transceiver
http://en.wikipedia.org/wiki/Radio_Data_System
GNU General Public License v3.0
220 stars 73 forks source link

Include missing iomanip #54

Closed argilo closed 2 years ago

argilo commented 2 years ago

gr-rds fails to build against GNU Radio's master branch, with many errors like this:

/home/argilo/prefix_310/src/gr-rds/lib/parser_impl.cc: In member function ‘void gr::rds::parser_impl::decode_type0(unsigned int*, bool)’:
/home/argilo/prefix_310/src/gr-rds/lib/parser_impl.cc:137:41: error: ‘setprecision’ is not a member of ‘std’
  137 |   af_stringstream << std::fixed << std::setprecision(2);
      |                                         ^~~~~~~~~~~~

It looks like the problem is that parser_impl.cc uses iomanip but doesn't include it. We probably got away with that up until now because something in GNU Radio happened to include it.

bastibl commented 2 years ago

Thanks!