打印

gnuradio-runtime.dir/prefs.cc.o错误的解决

[复制链接]
933|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
gaochy1126|  楼主 | 2019-9-15 18:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[  4%] Building CXX object gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/prefs.cc.o
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc: In member function ‘virtual void gr::prefs::_read_files(const std::vector<std::__cxx11::basic_string<char> >&)’:
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:117:16: error: ‘cerr’ is not a member of ‘std’
           std::cerr << "WARNING: Config file '" << fname << "' failed to parse:" << std::endl;
                ^~~~
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:117:16: note: suggested alternative: ‘ceil’
           std::cerr << "WARNING: Config file '" << fname << "' failed to parse:" << std::endl;
                ^~~~
                ceil
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:118:16: error: ‘cerr’ is not a member of ‘std’
           std::cerr << e.what() << std::endl;
                ^~~~
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:118:16: note: suggested alternative: ‘ceil’
           std::cerr << e.what() << std::endl;
                ^~~~
                ceil
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:119:16: error: ‘cerr’ is not a member of ‘std’
           std::cerr << "Skipping it" << std::endl;
                ^~~~
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:119:16: note: suggested alternative: ‘ceil’
           std::cerr << "Skipping it" << std::endl;
                ^~~~
                ceil
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:122:14: error: ‘cerr’ is not a member of ‘std’
         std::cerr << "WARNING: Config file '" << fname << "' could not be opened for reading." << std::endl;
              ^~~~
/home/ubuntu/gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc:122:14: note: suggested alternative: ‘ceil’
         std::cerr << "WARNING: Config file '" << fname << "' could not be opened for reading." << std::endl;
              ^~~~
              ceil
gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/build.make:950: recipe for target 'gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/prefs.cc.o' failed
make[2]: *** [gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/prefs.cc.o] Error 1
CMakeFiles/Makefile2:791: recipe for target 'gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/all' failed
make[1]: *** [gnuradio-runtime/lib/CMakeFiles/gnuradio-runtime.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2


https://bbs.21ic.com/icview-2819104-1-2.html

使用特权

评论回复

相关帖子

沙发
gaochy1126|  楼主 | 2019-9-15 20:36 | 只看该作者
在头文件里文件添加#include <iostream>
gnuradio-3.7.10/gnuradio-runtime/lib/prefs.cc            这个文件中              

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:这个社会混好的两种人:一是有权有势,二是没脸没皮的。

1051

主题

11300

帖子

26

粉丝