Menu

Dos Mode

2005-02-01
2012-09-26
  • Nobody/Anonymous

    just wondering how to compile a program into dos mode so i can run it under ms dos 6 and not windows. can someone tell me what i need and how to do this?

     
    • Stepho

      Stepho - 2005-02-01

      You need a compiler for DOS.
      The compiler provided with Dev-C++ (MingW) is for Windows 32bits applications only (GUI or console).

      May in the FAQ there's something about where to find other compilers... don't know... :-)
      Or check Google, it usually helps a lot ;-)

       
      • Benjamin Lau

        Benjamin Lau - 2005-02-01

        You can use DJGPP, a GCC for DOS

        www.delorie.com/djgpp/

         
        • Nobody/Anonymous

          Note that you will get a 32 bit app. if you use djgpp. For 16 bit dos programs borland's free turbo c could be used, not up to date but it's working.

           
    • Br5an

      Br5an - 2005-02-01

      if you go the old borland route:
      http://bdn.borland.com/museum/

      I can't say much about compatibility. You could have alot of trouble to little or none depending on the code.

      Cheers,
      Brian

       
    • Anonymous

      Anonymous - 2005-02-01

      See also OpenWatcom and Digital Mars compilers.

       
    • Nobody/Anonymous

      thank people for helping me out :)
      can i get Dev C++ to use there compilers?

       
    • Wayne Keen

      Wayne Keen - 2005-02-02

      Well, in principle, anything is possible, but Dev was constructed to work with the GCC compiler. Working with another compiler is a matter of some detailed cross wiring, and, since such tasks are pretty well off the beaten path - you are going to pretty much be on your own.

      Of alternatives mentioned above, the only one that is is GCC based is djgpp. There have been some posts here from time to time from people who use djgpp and kindly give of their information and hints.

      A couple of other notes:

      OpenWatcom has its own IDE, which is not bad.

      There is a list of free IDEs that support the free Borland compiler in the thread titled "The Forum FAQ - Please Read First"

      Wayne

       
    • Kip

      Kip - 2005-02-02

      Wayne's right. Just add a new compiler profile in Dev to point to your DJGPP installation.

      Also, 32-bit is not a problem. You probably just need a protected mode driver or something.

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.