[Prev][Next][Index]
new parser bug
- From: "Bernd W. Mohr" <mohr@cs.uoregon.edu>
- Subject: new parser bug
- To: sage-bugs@cica.cica.indiana.edu (Sage++ Bugs Mailinglist)
- Date: Mon, 12 Dec 1994 15:46:25 -0800 (PST)
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