【发布时间】:2011-04-14 13:12:19
【问题描述】:
当我通过这个命令编译 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 文件时,它显示它是只读文件,因此无法进行更改。
如何纠正这些错误?
【问题讨论】:
标签: linux cygwin compilation g++