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 06 Aug 2011 03:34:45 AM UTC  
Category: Source/Code viewSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment(Rich Markup)

You are not logged in

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


Wed 17 Jan 2018 11:31:46 AM UTC, comment #4:

That should be:

#ifndef EOF
#define EOF (-1)

An updated release of ddd would be nice.

Sander Flobbe <flobbe>
Sat 16 Mar 2013 05:35:48 AM UTC, 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 23 Dec 2011 01:51:10 PM UTC, 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 05 Oct 2011 01:04:57 AM UTC, comment #1:

Duplicate of Bug #30862.

Michael Eager <eager>
Sat 06 Aug 2011 03:34:45 AM UTC, 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 flobbe (Posted a comment)
  • -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 05 Oct 2011 12:59:09 AM UTCeagerAttached File-=>Added ddd.patch, #24100

    Back to the top

    Powered by Savane 3.1-cleanup1