From: Jonathan G. <gt...@ma...> - 2005-12-11 15:09:14
|
Claudio Levinas wrote: > 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. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > Hi, I heard somewhere that OpenC++ does not support gcc4. I dont' remember where I heard it or if its true but you might want to try gcc 3.4. Sincerely, -- Jonathan Gdalevich Georgia Institute of Technology, Atlanta Georgia, 30332 Email: gt...@pr... |