Thread: bios.h

  1. #1
    Registered User
    Join Date
    Jun 2008
    Location
    Israel
    Posts
    7

    Question bios.h

    Hello,
    When I compile my project I had an error "fatal error C1083: Cannot open include file: 'bios.h': No such file or directory.
    Can anyone help me?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    You're probably trying to compile ancient code written for DOS on a Windows XP/Vista machine. Get with the times.

  3. #3
    Registered User
    Join Date
    Jun 2008
    Location
    Israel
    Posts
    7
    Quote Originally Posted by MacGyver View Post
    You're probably trying to compile ancient code written for DOS on a Windows XP/Vista machine. Get with the times.
    You're right.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    bios.h is not part of the ANSI C++ Language Standard.

    When non-standard headers/libraries are used, you need to use the compiler for-which the program was written. In general, you can't just go find a bios.h file (and library) somewhere... If that particular header/library wasn't designed for your compiler, it probably won't work with your compiler. (Most real-world programs do use some non-standard code.)

    If you want to know what is standard, one reference is dinkumware.com. All C++ compilers have the standard libraries.

    If you want to know what additional non-standard headers are included with your compiler, you'll need to check the documentation for your particular compiler.

    And, the compiler has to be designed for your platform (hardware & operating system). So even if you had the correct DOS compiler, the compiler might not run under Windows. And even if it does, the resulting EXE file might not run.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. in need of bios.h and bios.lib
    By volpe12 in forum C++ Programming
    Replies: 3
    Last Post: 06-24-2005, 08:30 AM
  2. complier with bios.h
    By neuflex in forum C Programming
    Replies: 6
    Last Post: 03-08-2005, 07:27 AM
  3. clrcscrn without bios.h?
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 04-03-2002, 06:18 PM