#include <cstdio> add line Re: [bug #33960] strclass.C:1546: error: ‘EOF’ was not declared in this scope

Fred Finster <[email protected]> Thu, 19 Jul 2012 03:17:28 +0000 (UTC)
Newsgroups gmane.comp.debugging.ddd.bugs
Message-ID <[email protected]>
Madhur <INVALID.NOREPLY <at> gnu.org> writes:


(Solved)   
Edit  strclass.C  file around line 41  after the line #include <stdlib.h>
add line 42     #include <cstdio> 
that should fix your compile problem.  It did work for me.     
~~~~~

#include "strclass.h"
#include "config.h"
#include <ctype.h>
#include <limits.h>
#include <new>
#include <stdlib.h>
#include <cstdio>   /* FLF fix EOF not defined error July 16 2012  */

~~~~~

for strclass.C include line 42
#include <cstdio>

for files src/
src/fl_font_browser.h #include <cstdio>
src/MediaBrowser.H #include <cstdio>
src/AddCommand.H #include <cstdio>
src/WaveForm.H #include <stdint.h>
src/VideoViewGL.H #include <stdint.h>

Hope that helps you and otherS compile DDD. Good luck
Fred Finster WB7ODY   http://netinaflash.com