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

 
 

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

Submitter:  Madhur <madhur_ahuja>
Submitted:  Sat 06 Aug 2011 03:34:45 AM UTC
   
 
Category:  Source/Code view Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

That should be:

#ifndef EOF
#define EOF (-1)
#endif

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

#ifndef
#define EOF (-1)
#endif


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>
Group administrator
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
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Madhur <madhur_ahuja>

 

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

Attach Files:
   
   
Comment:
   

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
  • -email is unavailable- added by eickeler (Updated the item)
  • -email is unavailable- added by flobbe (Posted a comment)
  • -email is unavailable- added by kvenugop (Posted a comment)
  • -email is unavailable- added by cooleric1234 (Posted a comment)
  • -email is unavailable- added by eager (Updated the item)
  • -email is unavailable- added by madhur_ahuja (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-24 eickeler Open/ClosedOpen Closed
    2021-01-15 eickeler StatusDuplicate Fixed
    2021-01-15 eickeler StatusNone Duplicate
    2011-10-05 eager Attached File- Added ddd.patch, #24100

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code