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: egcs-19980715 doesn't recognize '__linux__' in C++ code


At 22:03 20.07.98 , H.J. Lu wrote:
>> 
>>  I compilled, installed egcs-19980715(egcs-2.91.50) on i586-pc-linux-gnu
>> system(RH5.1, glibc-2.0.94-4, libg++-2.8.2-980708, ...).
>>  It compiles linux kernel 2.1.108, 2.1.109, and compiled kernels boots
>> OK.
>>  But 'make -k check' shows gcc(egcs-19980715) cannot recognize
>> '__linux__' in libg++/etc/lf/screen.cc and fails to compile screen.cc.
>>  It works well with 'LINUX' or '__LINUX__', but, I think, these are not
>> used frequently on linux system. 
>> 
>
>Get libg++ 2.8.2 980720.
>
>
>H.J.
>---
>This is a libg++ addon for libstdc++ 2.8.1 and egcs. It is needed only
>if your applications depend on libg++ and the dependency on libg++
>cannot be removed easily. The standalone libg++ is not longer needed.
>
>Changes from libg++ 2.8.2 980708:
>
>1. Include <termcap.h> in etc/lf/screen.cc for Linux.

Haven't tested yet, but this could possibly fail with "Invalid exception
specification" with glibc-2.1, cause termcap.h doesn't know glibc-2.1 yet
and uses __P and not __PMT in a typedef.

Franz.



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