RE: Compiling on Mac OS X
Venkatram Vundavalli <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <7D5800A5B6E26644B2EB7A862856B0D40A6E7C44@SARASWATI> |
Hi, Thanks for your responses. Even though I installed ICU package using gcc and not thru Code Warrior, I was getting this error. This is because of the flag __MWERKS__ and I was able to solve my errors by undefined __MWERKS__ before including unistr.h. I think the flag __MWERKS__ is defined by Code Warrior. It is not the right flag to identify Mac Classic. May I say it is a bug? thanks, Venkat -----Original Message----- From: Steven R. Loomis [mailto:[email protected]] Sent: Wednesday, September 10, 2003 9:28 PM To: Venkatram Vundavalli Cc: [email protected] Subject: Re: Compiling on Mac OS X pmacos.h is for Classic - are you targetting Mach0 (OS X native) binaries or Classic? I assume you are targetting OS X only - in which case you will want to use runConfigureICU I'm not familiar with CW on OS X - does it have its own compiler or use the apple Gcc? What you might do is use the command line to build and install ICU, and then just include the header files and libraries (i.e. not to build ICU from within the CW environment). OK looking at umachine.h I see: #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) # include "unicode/pwin32.h" #elif defined(__OS400__) # include "unicode/pos400.h" #elif defined(__MWERKS__) # include "unicode/pmacos.h" #else # include "unicode/platform.h" #endif This is probably a bug because I think it assumes __MWERKS__ means Mac Classic. Perhaps you can change this so that it includes platform.h here instead of __MWERKS__ ? Hope this helps, please let me know, Regards, Steven On Wednesday, September 10, 2003, at 08:19 AM, Venkatram Vundavalli wrote: > Hi All, > I have created a small application on Mac OS X using ICU UnicodeString > class. I included header file unistr.h. I was getting the following > error. > > Error : identifier 'int32_t' redeclared > was declared as: 'int' > now declared as: 'long' > (included from: > umachine.h:49 > utypes.h:36 > unistr.h:24 > StringImpl.h:24) > pmacos.h line 102 typedef signed long int32_t; ... > Has any body faced similar problem? I am using Code Warrior(8.3) in > Mac OS > X(10.2.6) . Installed ICU(2.6) as per the instructions.