我在使用此命令编译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时,它显示它是只读的;文件更改无法接受。
如何删除这些错误?
答案 0 :(得分:0)
#include <cstring>
之前标题会触发您的错误。