• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: strcasestr() missing in gcc 4.0?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >strcasestr() missing in gcc 4.0? (From: Ken Baer <email@hidden>)

  • Prev by Date: strcasestr() missing in gcc 4.0?
  • Next by Date: Re: Find results in new window, possible?
  • Previous by thread: strcasestr() missing in gcc 4.0?
  • Next by thread: xcode dynamic_cast error with GCC4
  • Index(es):
    • Date
    • Thread