fpermissive error of gcc
I am getting these errors when i compile sim_routing.cc program by this command
g++ -Wall -o sim_routing sim_routing.cxx
following errors comes
../../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>
error : there are no argument to strcat that depends on template parameter,so declaration to strcat must be avaible.
how these errors can be removed.
strcat() is a C language function. It appears that your compiler thinks it should be a template function. Try changing 'strcat(dest,src)' to '::strcat(dest,src)'.
now compile errors are removed butnow linking errors exit
collect 2 : ld returned 1 exit status
That's all? Nothing about unresolved symbols, or such?