From: Dean G. <de...@de...> - 2003-06-08 17:16:37
|
First I would like to say that the method Grzegorz to fix my earlier problem worked. I've been working late nights and did not get a chance to try it until recently. Briefly how to replace the GC in opencxx is simple. Download the newest GC & replace the gc folder in opencxx. GC now has autotools support so you can just run ./configure && make. Then copy over the two missing file that opencxx requires for it's autoconf (Makefile.gc.in & Makefile.options.in) and run ./configure && make for opencxx. Works great. Thanks Now the new problem. Trying to compile the samples I get the following error: ////////////////////////////////////////////////////////////////////////////////// ../src/occ -m -v -I../gc -I../src -- -g VerboseClass.mc [Preprocess... g++ -I../gc -I../src -D__opencxx -E -o VerboseClass.occ -x c++ VerboseClass.mc] [Translate... VerboseClass.occ into: VerboseClass.ii] /usr/include/c++/3.2.2/i386-redhat-linux/bits/c++locale.h:48: parse error before `; }' MOP warning: The hash table is full. Expanded... Produce VerboseClass-init.cc .. [Compile... g++ -fPIC -shared -o VerboseClass-init.so VerboseClass-init.cc] 1 Error(s). OpenC++ stops. make: *** [VerboseClass.so] Error 1 ////////////////////////////////////////////////////////////////////////////////// What seems to be happening is that the translator is getting hung up on the __typeof operator in the following code from '/usr/include/c++/3.2.2/i386-redhat-linux/bits/c++locale.h': ////////////////////////////////////////////////////////////////////////////////// #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) namespace __gnu_cxx { extern "C" __typeof(uselocale) __uselocale; } #endif ////////////////////////////////////////////////////////////////////////////////// My question is how do I bypass this? Of course it would be cool if opencxx understood the __typeof operator but simply not having it preprocessed in would be good enough for me right now. Thank you for any help, Dean Giberson |