1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2011
    Rep Power

    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
    ../../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.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Not anything to do with Linux, since you're running stuff in Windows with cygwin. However, try adding:
    #include <string.h>
    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

IMN logo majestic logo threadwatch logo seochat tools logo