Compiling on Mac OS X
Venkatram Vundavalli <[email protected]>
| Newsgroups | gmane.comp.lib.icu.general |
|---|---|
| Message-ID | <7D5800A5B6E26644B2EB7A862856B0D40A671E47@SARASWATI> |
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>>
Venkatram Vundavalli.vcf
(application/octet-stream, 414 B) - not displayed