April 15th, 2011, 03:33 AM
Fpermissive error of gcc in cygwin
I am using cygwin
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.
April 28th, 2011, 07:30 PM
Not anything to do with Linux, since you're running stuff in Windows with cygwin. However, try adding:
into the top of sim_routing.cc
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo