Linux cygwin中的编译错误

Linux cygwin中的编译错误,linux,cygwin,compilation,g++,Linux,Cygwin,Compilation,G++,当我使用以下命令编译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

当我使用以下命令编译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>
。/../common/priority_q.h:在成员函数'bool guaredqueue::Validate(Const char*)中;
错误:“strcat”没有依赖于模板参数的参数,因此“strcat”的声明必须可用。
错误:
当我试图更改
commom/priority_q.h
文件时,它显示它是只读文件,因此无法进行更改


如何纠正这些错误?

对此不确定,但您可以尝试包括

#include <cstring>
#包括
在代码中包含
priority_q.h
文件之前。在处理该模板之前,应该将strcat的声明置于作用域中