如何解决gcc编译错误
| 通过此命令编译sim_routing.cc程序时出现这些错误../../bin/cxx sim_routing.cc
g++ -Wall -o sim_routing sim_routing.cxx
产生以下错误:
../../common/priority_q.h : In member function \'bool guardedQueue<ITEM>::Validate(Const char*);
error : there are no argument to \'strcat\' that depend on template parameter so a declaration of \'strcat\' must be avaible.
error : <if you use -fpermissive g++ will accept your code but allowing use of undeclared name is deprecated>
当我尝试更改commom / priority_q.h时,它显示为只读;无法接受文件更改。
如何消除这些错误?
解决方法
标头触发错误之前的“ 2”。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。