RE: Compiling on Mac OS X

"Zartaj T. Majeed" <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <[email protected]>
As far as I can tell pmacos.h is needed for CodeWarrior PEF builds
for Mac OS 9 or earlier (and even that support is partial). On Mac
OS X with the Unix shell and utilities available, it is possible to
configure ICU for the particular compiler toolchain being used.
The ICU configure works out of the box for gcc. For CW you
will have to make some changes and add an mh-* file.
It is not hard but will require a day or two of work, more
if you're not familiar with the ICU build framework and/or
the CW command line tools.

Zartaj

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Venkatram
Vundavalli
Sent: Wednesday, September 10, 2003 8:19 AM
To: [email protected]
Subject: Compiling on Mac OS X

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;

After searching in OS files,  I found that in types.h(in
/System/Library/Frameworks/Kernel...) has defined as
typedef          int  int32_t
I think this file is included implicitly when I included system path. At the
beginning there were macros defined inside this header file(to check if the
definition is already included) . I defined these macros before calling
unistr.h (so that it will not include the header), but didn't resolve the
errors.
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.
Please let me know how to over come this error.
thanks,
Venkat



 <<Venkatram Vundavalli.vcf>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.