This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc and string.h



>I have been trying to compile a piece of software which was originally
>written on Mandrake Linux (or Mandrake GNU, whatever it may be!) but am
>having difficulty with the functions strdupa and strsep which both are
>missing from my string.h  (I assume they are string functions)  Are they
>new additions or specific to Linux?  I wonder if they might be custom
>functions which someone has written into their own string.h file. Hmm.

I've just had a look at the man pages and my glibc's string.h file:
strsep() is not ANSI, so it may not be available in your libraries. Try 
using strtok() ?
strdupa() is clearly a GNU extension (at least it looks so, from the 
__extension__ surround its definition).

I think you can work around this functions, but if you really need the (eg. 
they're heavilt used in your code) - and don't have licensing problems with 
LGPL for your work - you can just grab their source from the GNU library.
Otherwise, you might consider using GNU libc on your IRIX machine.

Hope this helps,
Fyre Wyzard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]