GCC 2.95 and ISO/IEC 9899 Amm 1 functions?

Claudio Bley bley@cs.uni-magdeburg.de
Tue May 28 03:18:00 GMT 2002


-----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-----



More information about the Gcc-help mailing list