gcc编译错误

时间:2011-04-14 12:42:49

标签: linux

我在使用此命令编译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时,它显示它是只读的;文件更改无法接受。

如何删除这些错误?

1 个答案:

答案 0 :(得分:0)

#include <cstring> 之前标题会触发您的错误。