Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #49

Open
ha7ilm opened this issue Mar 2, 2017 · 1 comment
Open

build error #49

ha7ilm opened this issue Mar 2, 2017 · 1 comment

Comments

@ha7ilm
Copy link

ha7ilm commented Mar 2, 2017

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
Copy link

scaprile commented Mar 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants