From: <pa...@rc...> - 2001-03-12 08:09:54
|
Joe Piolunek wrote: > Unfortunately, the error still occurs. Bummer. :-) > A search for " /usr/include/sys/io.h:98: parse error before `::'" turned up a > few comments indicating that it may be related to a bug in gcc, which may be > fixed in ver. 2.96 . There was a report of the problem going away if using an > earlier version of glibc. Remind me again which version of RedHat you're using? Are these the stock versions of glibc and gcc that came with this version? > A suggested fix is to "change '::' to ' : : ' in > sys/io.h" . Does that work? Of course, that isn't a proper solution, since I don't want people to have to hack system include files in order to build hpoj. > I tried to use a #define ... #undef wrapper, but got errors about > using an improper macro name. I'm not surprised that that doesn't work. Generally #define only works with symbols, not operators. I'm wondering if this problem only affects C++ and not C code. Could you please try writing a simple "hello world" program compiled as C (not C++), and include this file? If it works OK for C code, then perhaps I could add a small C wrapper for the in/out functions to avoid including this file in a C++ file. Of course, it wouldn't be good for performance, since those functions would no longer be inlined. David |