From: Claudio L. <c_l...@ho...> - 2005-12-11 10:24:13
|
Hello, I am not able to compile metaclasses with occ (versions 2.7, 2.8, or CVS) on the mac. I was able to create the occ executable, but then when I use it I get the following (other errors were fixed following advice from the forum): occ -m BeforeClass.mc EXECUTING: g++ g++ -D__opencxx -E -o BeforeClass.occ -x c++ BeforeClass.mc /usr/include/stdio.h:258: parse error before `"_" "fprintf" "$LDBLStub"' /usr/include/stdio.h:342: parse error before `"_" "snprintf" "$LDBLStub"' /usr/include/stdio.h:374: parse error before `"_" "__svfscanf" "$LDBLStub"' /usr/include/wchar.h:124: parse error before `"_" "fwprintf" "$LDBLStub"' /usr/include/stdlib.h:181: parse error before `"_" "strtold" "$LDBLStub"' The errors above point to the following definitions: /usr/include/sys/cdefs.h: #define __STRING(x) #x #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__-0 < 1040 # define __DARWIN_LDBL_COMPAT(x) __asm("_" __STRING(x) "$LDBLStub") #else # define __DARWIN_LDBL_COMPAT(x) __asm("_" __STRING(x) "$LDBL128") #endif /usr/include/stdio.h: int fprintf(FILE * __restrict, const char * __restrict, ...) __DARWIN_LDBL_COMPAT(fprintf); Any suggestion on how to work arround/fix this? Thanks! Claudio. |