2011-04-14 59 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>之前標題觸發您的錯誤。