Thread: Missing header file

  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    2

    Missing header file

    I have gcc installed.

    When compiling stars.cpp, STARS.CPP:12:16: fatal error: dos.h: No such file or directory

    dos.h is no where on drive.

    Is there a place to get the header files i will need?

    Thanks

  2. #2
    Banned
    Join Date
    Aug 2017
    Posts
    861
    Linux does not suppose DOS, so no dos.h, if you're not running Linux, then wait for one that knows about other than Linux. you might want to include what your OS is.

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    dos.h is, as its name implies, an interface file for MS-DOS. Functions for interrupts, system i/o and timing were traditionally put in there. In other words, it isn't available in non-Windows systems. I also think it isn't supported by most open-source compilers either, but don't quote me on that.
    Last edited by GReaper; 12-09-2017 at 09:22 PM.
    Devoted my life to programming...

  4. #4
    Registered User
    Join Date
    Sep 2017
    Posts
    93
    DOS C compiler on DOSBox maybe?

    Install Turbo C++ Compiler on 64-bit Windows 7 Using DosBox - techinfoBiT

    ibiblio.org FreeDOS Group -- Development

    IMO, go after the stuff listed in the FreeDOS link. It has DJGCC which is a GCC port to DOS. It's going to be way more modern than Turbo C for DOS.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well not trying to learn or copy from any code which uses dos.h would be a big help.

    Chances are, it was long obsolete before you were born.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. missing header file...
    By roaan in forum C Programming
    Replies: 6
    Last Post: 07-03-2009, 07:43 AM
  2. Where to get missing header files?
    By maxorator in forum C++ Programming
    Replies: 4
    Last Post: 08-23-2005, 01:09 PM
  3. A Missing Header File
    By Anglos in forum C Programming
    Replies: 3
    Last Post: 04-26-2002, 10:53 PM
  4. Missing header?!?!
    By doubledeala in forum C++ Programming
    Replies: 3
    Last Post: 01-30-2002, 02:59 AM
  5. header file missing
    By Existentialist in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2001, 08:31 PM

Tags for this Thread