This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: C headers and std namespace


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benjamin Kosnik <bkoz@cygnus.com> said:

> Odd. I cannot reproduce this with CVS gcc + CVS libstdc++. I get:
> 
> %g++ -g list04.cc -H -Wall -W
>  /mnt/hd/bliss/H-x86-gcc-3/include/g++-v3/cctype
> . /mnt/hd/bliss/H-x86-gcc-3/include/g++-v3/bits/std_cctype.h
> .. /usr/include/ctype.h
> ... /usr/include/features.h
> .... /usr/include/sys/cdefs.h
> .... /usr/include/gnu/stubs.h
> ... /usr/include/bits/types.h
> ....
> /mnt/hd/bliss/H-x86-gcc-3/lib/gcc-lib/i586-pc-linux-gnu/2.96/include
> stddef.h ... /usr/include/endian.h .... /usr/include/bits/endian.h
> <bkoz@haight> /mnt/hd/bliss/src.libstdc++/testsuite                
>               
> 
> ??
> 
> Are you using gcc-2.95.2?
> 
> -Benjamin

I am using gcc 2.95.2 with libstdc++ 2.90.8 snapshot, built together,
on sparc-solaris-2.7. The exact message I get is:

> gcc -fhonor-std -H t.cc

/export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
./../../include/g++-v3/cctype

/export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
./../../include/g++-v3/bits/std_cctype.h
  /usr/include/ctype.h
   /usr/include/sys/feature_tests.h
    /usr/include/sys/isa_defs.h
t.cc: In function `int main()':
t.cc:9: call of overloaded `isdigit (char)' is ambiguous
/usr/include/ctype.h:51: candidates are: int isdigit(int)
/export/home/cms/localtest/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../
./../../include/g++-v3/bits/std_cctype.h:146:                 int
std::isdigit(int)

alink@anthonyw.cjb.net -- Questions relating to ALINK
anthony@anthonyw.cjb.net  -- Non-ALINK questions
http://anthonyw.cjb.net/ -- ALINK home page
PGP Fingerprint: 
0E2D D32A 8732 DC31 804C  D435 9BF0 F8FE 1C1B 9AD5
PGP Key at: http://i3.yimg.com/3/c7e5ee24/g/68fc2307.asc

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.1 for non-commercial use <http://www.pgp.com>

iQA/AwUBOPGO+pvw+P4cG5rVEQIe/QCg1rFaFh6uNhIlPSf/SuIn6ETwV1QAmQGs
uoy2tnhtxMPVIjCttTpSe+5p
=7apl
-----END PGP SIGNATURE-----



__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

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