• 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
CW -> Xcode, <ctype.h> problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CW -> Xcode, <ctype.h> problem


  • Subject: CW -> Xcode, <ctype.h> problem
  • From: Bill Monk <email@hidden>
  • Date: Tue, 21 Jun 2005 23:58:08 -0500

Brought a project over from CW. Builds fine, except for warnings

/usr/bin/ld: warning multiple definitions of symbol _isdigit
/usr/bin/ld: warning multiple definitions of symbol _iscntrl
/usr/bin/ld: warning multiple definitions of symbol _isalpha
/usr/bin/ld: warning multiple definitions of symbol _toupper
etc

The CW project contained its own private ctype.c & ctype.h files and other files
#include "ctype.h" rather than <ctype.h>


Seems easy enough to fix - get rid of the private ctype files, #include <ctype.h> not "ctype.h".

Now it complains

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/ctype.h:117: error: parse error before ']' token
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/ctype.h:118: error: parse error before ']' token
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/ctype.h:120: error: parse error before ']' token
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/ctype.h:121: error: parse error before ']' token
etc


where the "offending" lines in <ctype.h> are

int     isalnum(int);
int     isalpha(int);
int     iscntrl(int);
int     isdigit(int);
etc

(which expand into
static __inline __darwin_ct_rune_t
__isctype
and eventually the inline function contains some square brackets, which I guess is what the errors are actually referring to...but I doubt there's really anything wrong with ctype....)


What is the real problem here?

Xcode 2.1/gcc 4.0 compiling for 10.4.1. Have also tried it with gcc 3.3/10.2.x

_______________________________________________
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


  • Prev by Date: Re: xcode 1.5
  • Next by Date: ZeroLink fails
  • Previous by thread: Re: xcode 1.5
  • Next by thread: ZeroLink fails
  • Index(es):
    • Date
    • Thread