Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,530
    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!

  3. #3
    Just 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

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,530
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •