c++ - Compiling in Cygwin: 'EOF' was not declared in this scope, compiles fine in CentOS -
i running issues compiling linux-bound applications in cygwin.
this error:
error: ‘eof’ not declared in scope
is produced following code snippet
if (option == eof) break;
compiling in centos directly produces no errors.
these g++ params passed make file:
-g -o0 -wall -wextra -std=gnu++11
gcc version on centos:
4.8.1 20130715
gcc version in cygwin
4.8.2
i wondering if missing libraries in cygwin, or if limitation of cygwin , can't resolved.
eof
defined in stdio.h
/ cstdio
. happening aren't including 1 of headers, are including, example, iostream
. standard library headers permitted cause other headers included well, , implementations' iostream
headers this, not all. shouldn't rely on it. if use eof
, add explicit include appropriate header in own code. (even if isn't code, isn't in case, modification required in source code same.)
Comments
Post a Comment