From: Claudio L. <c_l...@ho...> - 2005-12-11 20:54:10
|
Lex.cc does indeed skip the keyword, only that it was set to skip "__ASM__". I simply added "__ASM" and it did the job. #if (defined __GNUC__) || (defined _GNUC_SYNTAX) { "__alignof__", token(SIZEOF) }, + { "__asm", token(ATTRIBUTE) }, { "__asm__", token(ATTRIBUTE) }, { "__attribute__", token(ATTRIBUTE) }, Thanks!!! Claudio. >Jonathan Gdalevich wrote: >>Claudio Levinas wrote: >>>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"' >[...] >>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. >The problem is not gcc4, but its use of modern C++ code in the libstdc++ >library headers (notably the type_traits, I believe), which occ doesn't >parse correctly. >The above error, however, seems to stem from system headers, notably >some inline assembler code, which, IIRC, should be skipped by the lexer. >Regards, > Stefan |