From: stan <st...@uc...> - 2003-03-05 23:50:19
|
How does one go about getting openC++ to retain comments? Gregorz Jakacki asked me to supply my *.occ files, what are these? I am using: OpenC++ 2.5.12 GCC 2.96-85 on RH7.1 my make file looks like this: Test.o: Test.cpp Test.h Meta.so occ -g -c -SMeta -- Test.cpp Meta.so: Meta.mc Meta.h XMLWalker.o occ -m -g Meta.mc -I/home/uusaa XMLWalker.o XMLWalker.o: XMLWalker.cpp XMLWalker.h occ -c -g XMLWalker.cpp -I/home/uusaa my XMLWalker, walks the ast spitting out xml as it goes. I tried inserting the -C option into the occ compile commands and when I do this, i get the following errors: occ -C -g -c -SMeta -- Test.cpp /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new:35: parse error before `36 "/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new"' /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new:44: parse error before `} ;' /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new:54: parse error before `void *' /usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new:67: parse error before `# 34' /usr/include/g++-3/iostream.h:31: parse error before `32 "/usr/include/g++-3/iostream.h"' /usr/include/g++-3/iostream.h:272: parse error before `# 54' /usr/include/g++-3/stl_alloc.h:344: parse error before `_Obj *' /usr/include/g++-3/stl_alloc.h:351: parse error before `void *' /usr/include/g++-3/stl_alloc.h:398: parse error before `: static' /usr/include/g++-3/stl_alloc.h:406: parse error before `( __n' 10 Error(s). OpenC++ stops. make: *** [Test.o] Error 1 any ideas? thanks |