From: Joe P. <joe...@sn...> - 2001-03-11 18:17:51
|
On Saturday 10 March 2001 11:00 pm, David Paschal wrote: > > /usr/include/sys/io.h:98: parse error before `::' > > Hi, Joe. Thanks for the bug report. I just checked in a change to > ParPort.h to wrap "#include <sys/io.h>" with 'extern "C" { }'. Try it > again after doing a "cvs update" and see if that fixes the problem. > Perhaps I should go through and do this around most if not all #includes > from C++ files, just to be on the safe side. > Unfortunately, the error still occurs. 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. A suggested fix is to "change '::' to ' : : ' in sys/io.h" . I tried to use a #define ... #undef wrapper, but got errors about using an improper macro name. -- Joe |