Re: strcasestr() missing in gcc 4.0?
Re: strcasestr() missing in gcc 4.0?
- Subject: Re: strcasestr() missing in gcc 4.0?
- From: Chris Ridd <email@hidden>
- Date: Fri, 02 Dec 2005 19:28:34 +0000
- Thread-topic: strcasestr() missing in gcc 4.0?
On 2/12/05 7:15, Ken Baer <email@hidden> wrote:
> I have some code that uses the standard C string function strcasestr
> (). It compiles just fine with GCC 3.3, but when I switch to GCC
> 4.0, it's an undefined symbol. Is this function unavailable under
> the new compiler? Is there a way I can get it back, because I'd like
> to use it.
>From <string.h>
[...]
#ifndef _POSIX_C_SOURCE
char *stpcpy(char *, const char *);
char *strcasestr(const char *, const char *);
#endif /* !_POSIX_C_SOURCE */
[...]
So check your #defines, as it *isn't* a standard C function. Then check what
you're linking with, because the symbol's in libSystem:
nm /usr/lib/libSystem.dylib | grep strcasestr
/usr/lib/libSystem.dylib(strcasestr.So):
90043504 T _strcasestr
90098200 T _strcasestr_l
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden