Thread: undeclared identifier '_iob'?

  1. #1
    Registered User
    Join Date
    Apr 2006
    Location
    London
    Posts
    3

    undeclared identifier '_iob'?

    I'm new to a software project using C++ in Visual 6.0 for Windows and occasionally I have come across the error:
    Code:
    error C2065: '_iob' : undeclared identifier
    when compiling which relates to a piece of code that looks like:

    Code:
    FILE* stream=freopen("evamfc2.stdout","w",stdout);
    or something similar dealing with standard output. Can anyone tell me what the library is that I'm missing? I have the following already included:

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <stdarg.h>
    #include <stddef.h>

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    its defined in stdio.h but I don't have a clue why you are getting that error. Your problem is probably somewhere else in your program.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Location
    London
    Posts
    3
    nope, that was it. for some odd reason it was commented out. cheers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. Why wont my function exit correctly?
    By LightsOut06 in forum C Programming
    Replies: 2
    Last Post: 10-09-2005, 09:23 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-29-2005, 11:21 PM