DDD – compilation fails: strclass.C: In function ‘std::istream& operator>>(std::istream&, string&)’: error: ‘EOF’ was not declared in this scope
If you have an issue while compiling DDD
strclass.C: In function ‘std::istream& operator>>(std::istream&, string&)’: strclass.C:1546:35: error: ‘EOF’ was not declared in this scope
Go, and thanks this guy http://garricksblog.blogspot.com/2012/02/mid-terms-and-build-errors.html.
quote: “It turns out that the constant EOF was not probably declared by including stdio.h. So I went ahead and added that in:
homer@homer-desktop:~/MyPrograms/ProgramSourceCode/ddd-3.3.12$ diff ddd/strclass.C ddd/strclass.C.old
42d41 < #include
I owe you a beer ;)
December 1st, 2014 in
main entries