This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 'extern "C" { ...}' and 'ANSI C++ forbids ...'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]