This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need Library header files to run C files in Keil

I need the header files conio.h, dos.h and all that to make it run in Keil Compiler.. Where do I get these?

Parents Reply Children
  • Oh sorry.. Guess I'm in the wrong track then..
    Let's say I need to use the outportb() fn.. It requires dos.h header file.. Now how do I use that in Keil?

  • Let's say I need to use the outportb() fn.. It requires dos.h header file.. Now how do I use that in Keil?

    Ok, maybe I was not clear when I said

    The '51 ain't no PC

    so let me try this



    The '51 supported by Keil tools is NOT a PC

    because of this:
    the '51 supported by Keil tools does NOT operate under DOS

    the '51 supported by Keil tools does NOT support file commands (there is no I/O)

    The above has nothing to do with Keil, it has to do with the hardware (the '51)

    If you can not understand the above, find yourself another occupation.

    Erik

  • Let's say I need to use the outportb() fn..

    No, let's not say that --- because it would be 100% wrong. You don't need that function, full stop. Erik says this a little more often than it strictly applies, but in your case he's 100% correct: you have to stop thinking of the 8051 as a PC. It's not. Not anywhere near it, actually.

    You lost your direction in a major way. So, please: stop whatever you're doing. Immediately. Go back at least half the way to the origins of the project you're in, and triple-check every single decision you made. Make sure you actually understand the reasons for making each and every choice along the way.

  • You lost your direction in a major way

    I guess sniffing chlorine will do that.

    Erik

  • "Guess I'm in the wrong track then"

    Oh, how true!

    "Let's say I need to use the outportb() fn.."

    You can say that the Earth is flat, if you like, but it won't help your navigation!

    "It requires dos.h header file.."

    Yes it does, but let's just recall what we learned earlier:

    "2. conio.h, dos.h are for MSDOS-based PC systems."

    "how do I use that in Keil?"

    You don't.
    You can't.
    Keil do not make tools that generate code to run on PCs!!

  • Former Member
    0 Former Member in reply to Andy Neil

    Andy, Erik and Hans,

    I always get a smile on my face when I read some of you Guy's replys here on the forums :o)

    Carsten

  • we aim to please

    have a good weekend

    Erik