[Prev][Next][Index]

new parser bug



Hi,
I just grabbed the newest version from rainier (after beata's changes)
and I now no longer can compile mgrid.pc. I could boil down the problem
to the following lines:

extern "C" {
  extern char *optarg;
  extern char *optarg;
}

Here is the error message form pC++2dep:

Error on line 3 of xx.C:symbol 'optarg'  (100) redeclaration symbol

The problem comes from the fact that optarg is declared twice as extern
in my HP's /usr/include/... files; which is totally valid C++.

It works without the "extern C { ...}" !

Bernd

--
Bernd Mohr   --   mohr@cs.uoregon.edu   --   ttp://www.cs.uoregon.edu/~mohr

Sometimes I think the surest sign that intelligent life exists elsewhere in
the universe is that none of it has tried to contact us.          -- Calvin