Results 1 to 4 of 4
I am getting these errors when i compile sim_routing.cc program by this command
../../bin/cxx sim_routing.cc
g++ -Wall -o sim_routing sim_routing.cxx
following errors comes
../../common/priority_q.h : In member function 'bool guardedQueue<ITEM>::Validate(Const ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-15-2011 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 2
fpermissive error of gcc
I am getting these errors when i compile sim_routing.cc program by this command
../../bin/cxx sim_routing.cc
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.
- 04-17-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
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)'.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 04-17-2011 #3Just Joined!
- Join Date
- Apr 2011
- Posts
- 2
linking error
now compile errors are removed butnow linking errors exit
cygwin shows
collect 2 : ld returned 1 exit status
- 04-17-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,140
That's all? Nothing about unresolved symbols, or such?
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
