balint256 / gr-baz

Collection of new blocks for GNU Radio
http://wiki.spench.net/wiki/gr-baz
GNU General Public License v3.0
192 stars 78 forks source link

build error #49

Open ha7ilm opened 7 years ago

ha7ilm commented 7 years ago

It does not build for me unless I #include <stdio.h> in /lib/baz_fractional_resampler_cc.cc, because it can't resolve fprintf.

scaprile commented 5 years ago

UPDATE 2019 On CentOS 7, with official EPEL repo RPM version of GRC **(3.7.11) and gcc 4.8.5, I had to do the same on this very file and also on the following files:

/lib/baz_fractional_resampler_ff.cc
/lib/baz_keep_one_in_n.cc

This seems something someone coming from C would normally do. However, I am null at C++. Isn't it required to include stdio if one references any of the streams or the io functions ?

But then, I got this:

/lib/baz_file_source.cc:107:15: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
       typedef std::shared_ptr<InputFile> sptr;
               ^

and that was enough for me. If this code compiles OK on some GRC version from whatever place with my gcc, I can uninstall my RPM and manually compile/install that version and then this code. Otherwise, I give up. Please let me know. Thanks.