From: Stefan S. <se...@sy...> - 2005-12-11 15:21:52
|
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 |