Search code examples
c++mingwdoscodeblocks

MinGW compile for MS DOS


I'm using Code::Blocks with MinGW to write my C++ applications in Windows XP. Now I want to compile my code to run under an MS DOS environment, so I can put it on my DOS formatted floppy disc. Can anyone help me?

Thanks in advance.

P.S. I don't mean the Command Prompt, but really the good old MS DOS Operating System.


Solution

  • It's pretty old, but DJGPP exists precisely for DOS development. I hasn't been updated since 2000, but it works.

    It's basically the same as MinGW, but exclusively for DOS.