-
Executing in DOS...
I am using the DigitalMars Compiler and when I compile a program it will only execute in windows... even if it is a command prompt only program... it sais "Requires Win32" when I execute it when Windows isn't running do I need a new compiler or would I just use a special parameter?
-
I don't know enough about that compiler to know if it can do DOS programs or not, but usually you gotta go with a 16-bit compiler for that. The only other alternative I know of is DJGPP which is a 32-bit pure DOS compiler.
-
In order to be able to compile for DOS you need to use the DOS libraries. Those can also be downloaded from the site where the compiler can be downloaded from:
http://www.digitalmars.com/
-
Parameter...
I downloaded the dos16 libraries and I put them in their correct folders (bin and lib) but I can't figure out what parameter to use, how would I type it into the command line to specify that I wanted to compile it for DOS only?
-
Didn't the libraries come with readme files? readme files tend to contain useful information like that.
-Prelude
-
Placing the libraries in the correct places is one thing. Now you need to tell your linker that you will be using these libraries. There are some possibilities to do this. First you could mention the libraries in your makefile, so the make utility knows that these libraries are required for building. Or you could pass the libraries as argument to your linker.