bugDDD - Bugs: bug #33960, strclass.C:1546: error: ‘EOF’...


bug #33960: strclass.C:1546: error: ‘EOF’ was not declared in this scope

Submitted by:  Madhur <madhur_ahuja>
Submitted on:  Sat Aug 6 03:34:45 2011  
Category: Source/Code viewSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sat Mar 16 05:35:48 2013, comment #3:

This can also be resolved by adding three lines in strclass.c

#define EOF (-1)

It works. I have done these changes and compiled and also started the application it works fine

Kavita Krishnan <kvenugop>
Fri Dec 23 13:51:10 2011, comment #2:

I found that if you edit ddd/strclass.C and add:

#include <cstdio>

with all the other #include directives it compiles fine.

Eric Carlsen <cooleric1234>
Wed Oct 5 01:04:57 2011, comment #1:

Duplicate of Bug #30862.

Michael Eager <eager>
Sat Aug 6 03:34:45 2011, original submission:

I get this error while compiling DDD 3.3.12

strclass.C: In function ‘std::istream& operator>>(std::istream&, string&)’:
strclass.C:1546: error: ‘EOF’ was not declared in this scope
strclass.C:1559: error: ‘EOF’ was not declared in this scope
strclass.C: In function ‘int readline(std::istream&, string&, char, int)’:
strclass.C:1589: error: ‘EOF’ was not declared in this scope
strclass.C:1602: error: ‘EOF’ was not declared in this scope
make[2]: *** [strclass.o] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

On Backtrack Linux :
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO

Madhur <madhur_ahuja>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #24100:  ddd.patch added by eager (281B - text/x-patch - Fix to strclass.C)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by kvenugop (Posted a comment)
  • -unavailable- added by cooleric1234 (Posted a comment)
  • -unavailable- added by eager (Updated the item)
  • -unavailable- added by madhur_ahuja (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Oct 5 00:59:09 2011eagerAttached File-=>Added ddd.patch, #24100

    Back to the top

    Powered by Savane 3.1-cleanup1