This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95 and ISO/IEC 9899 Amm 1 functions?
- From: "Claudio Bley" <bley at cs dot uni-magdeburg dot de>
- To: "loresayer" <loresayer at msn dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 28 May 2002 12:18:49 +0200
- Subject: Re: GCC 2.95 and ISO/IEC 9899 Amm 1 functions?
- References: <000b01c20608$9806c240$8119fea9@mars>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "loresayer" == loresayer <loresayer@msn.com> writes:
loresayer> Morning all, I was compiling a program earlier that
loresayer> uses two (supposedly ISO/ANSI standard) C functions:
loresayer> fwprintf( ) and wcsncpy( ). Surprisingly, these were
loresayer> reported during compilation as implicitly declared (ie,
loresayer> returning int and taking no arguments).
loresayer> Checking stdio.h (and wchar.h) in my includes folder, I
loresayer> noticed these methods were not proto- typed.
loresayer> I'm using GCC 2.95.3-5 on CygWin
loresayer> I'm uncertain if the include headers were installed by
loresayer> GCC or CygWin
The header files all say "This file is part of Cygwin." Remember that
GCC is only a compiler and C library functions are usually provided by
the C library. The FAQ at http://cygwin.com/faq/ says that only wcscmp
and wcslen are supported. If you need other functions it seems you
have to write them yourself; you might want to have a look at some
other projects (for example jikes [src/config.cpp]) how they cope with
this issue.
Claudio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>
iD8DBQE881mJTpSishmp0ioRArSrAJ0TtAJWTFqvLxZ/P44jDmguDdW+fwCdEE3i
W0pnuoQhLGshIsCC8xswGLY=
=8vaw
-----END PGP SIGNATURE-----