Re: Compiling on Mac OS X
"Steven R. Loomis" <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <[email protected]> |
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.