c++/7327: -isystem and template linkage

Berthold Höllmann hoel@germanlloyd.org
Tue Aug 13 04:54:00 GMT 2002


neil@gcc.gnu.org writes:

> Old Synopsis: strange error through using -isystem
> New Synopsis: -isystem and template linkage
> 
> State-Changed-From-To: open->analyzed
> State-Changed-By: neil
> State-Changed-When: Tue Aug 13 04:12:48 2002
> State-Changed-Why:
>     One way gives your headers extern "C" wrappers, the other
>     doesn't.  I'm not sure what the fix is, or even if it should be
fixed.
> 
>
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
cc&pr=7327
> 

If I generate the preprocessed files using

   g++ -E -isystem /home/hoel/work/boost/boost err.cxx -o erra

and

   g++ -E -I /home/hoel/work/boost/boost err.cxx -o errb

and call 

   diff err? | grep -v "^[<>] #" | grep -v "\---"

afterwards, the only output are the different lines. So why are the
C++ lines wrapped extern "C" using -isystem but not using -I? I'm also
not sure what the fix is, but shure it should be fixed.

Greetings

Berthold
-- 
Dipl.-Ing. Berthold Höllmann   __   Address:
hoel@germanlloyd.org        G /  \ L Germanischer Lloyd
phone: +49-40-36149-7374    -+----+- Vorsetzen 32/35    P.O.Box 111606
fax  : +49-40-36149-7320      \__/   D-20459 Hamburg    D-20416 Hamburg



This email contains confidential information for the exclusive attention
of the intended addressee. Any access of third parties to this email is
unauthorized. Any use of this email by not intended recipients like
copying, distribution, disclosure etc. is prohibited and may be
unlawful. When addressed to our clients the content of this email is
subject to the General Terms and Conditions of GL's Group of Companies
applicable at the date of this email. 

GL's Group of Companies does not warrant and/or guarantee that this
message at the moment of receipt is authentic, correct and its
communication free of errors, interruption etc. 



More information about the Gcc-bugs mailing list