Re: Fgets is not working on linux/gcc3.2.1

Michael Schwendt <[email protected]>
Newsgroups gmane.linux.redhat.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 10 Apr 2003 15:27:12 +0530, Ajay Bansal wrote:

> But the program is getting compiled!!!! & it is running also 

Argueing whether _one_ particular compiler is capable of compiling
the source does not make any sense when you would get this with
a different compiler:

$ c++ a.cpp -o a
a.cpp: In function int main ()':
a.cpp:12: FILE' undeclared (first use this function)
a.cpp:12: (Each undeclared identifier is reported only once for each 
function it appears in.)
a.cpp:12: pFile' undeclared (first use this function)
a.cpp:12: fopen' undeclared (first use this function)
a.cpp:14: feof' undeclared (first use this function)
a.cpp:17: fgets' undeclared (first use this function)
a.cpp:21: strerror' undeclared (first use this function)

Btw, with GCC3 it still compiles when you take out _all_ the
remaining C header files. ;)

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+lVGz0iMVcrivHFQRAmusAKCD2jgO/dLqlZvkragXOJi7fAhhXACeN3Yz
HRPAzhiibpXhyyeqQddK/a0=
=7YTB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.