This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 'extern "C" { ...}' and 'ANSI C++ forbids ...'
- To: mal at bewoner dot dma dot be
- Subject: Re: 'extern "C" { ...}' and 'ANSI C++ forbids ...'
- From: Konstantin Baumann <kostab at math dot uni-muenster dot de>
- Date: Thu, 15 Jul 1999 14:21:50 +0200
- CC: egcs at egcs dot cygnus dot com
- References: <378DC6EF.B77D653D@math.uni-muenster.de> <19990715132532.6162.qmail@localhost.localdomain> <378DCD55.B053A795@math.uni-muenster.de> <19990715134449.6814.qmail@localhost.localdomain>
mal@bewoner.dma.be wrote:
> > > > I think this an error, because the <X11/Xlib.h>-header-file is included in
> > > > "C"-mode not in "C++"-mode!
> > > >
> > >
> > > No. extern "C" just influences the linkage. The included stuff must be
> > > correct C++. just add int at the right place.
> >
> > But the included files are standard-system-header-files (e.g. for X11) I am not
> > allowed to change!
>
> Make a copy and make sure that gets found before the system header
> file.
That would work for ME.
But we are developing on multiple platforms, which would mean forcing every
developer to do the same; which is not acceptable!
--
Dipl.-Math. Konstantin Baumann Phone: +49-251-83-32701
Institute for Computer Science Fax: +49-251-83-33755
University of Muenster
Einsteinstrasse 62 mailto:kostab@math.uni-muenster.de
D-48149 Muenster http://wwwmath.uni-muenster.de/cs/u/kostab