2011-04-14 129 views
0

,当我通过这个命令GCC编译我得到这些错误的错误

../../bin/cxx sim_routing.cc 
g++ -Wall -o sim_routing sim_routing.cxx 

以下错误产生编译sim_routing.cc程序:

../../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> 

当我试图改变黎民/ priority_q.h它显示它是只读的;文件更改不能被接受。

这些错误如何消除?

回答

0

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