Thread: Which compiler?

  1. #1
    Registered User
    Join Date
    Dec 2003

    Which compiler?

    I recently got a source code of a program for serial communication (via COM ports) and as I tried to compile it in MS Visual C++ 6.0 it says "Cannot open include file: 'bios.h': No such file or directory"

    Sure enough, I couldn't find it in include directories. Then I downloaded Dev-C++, DJGPP and Borland 5.5 compiler but none of these seem to have the bios.h and it's library.

    What am I to do? Is there a free compiler that has this library and header? Or is there a better way to fix this problem? I'm a C beginner, so wouldn't know which other libraries include functions that do the same as those in bios.h...

    Thank you,


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    bios.h is a relic from when the world thought 16 bit DOS was still a good idea.

    All the compilers you mention are 32 bit compilers for a more modern age.

    If you really want that retro feel, then visit
    and get Turbo C 2.01

    This is really only a temporary solution to your problem. You should really figure out how to access the serial ports from the 32 bit compilers you have. For example, in VC++, start by reading about the CreateFile() function, one of its functions is to open a serial port.
    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.

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Originally posted by Salem
    bios.h is a relic from when the world thought 16 bit DOS was still a good idea.
    It was a good idea -- then. There were no 32 bit processors (at least around the DOS environment) and when there were, it took MicroSludge how long to switch to that platform?

    Granted, Linux was always on top of the technology, but they didn't have the marketing push IBM had. And even OS/2 was better than anything M$ came out with.
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  4. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM