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
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
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.
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...
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.
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.