Thread: dev cant compile dos??

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Exclamation dev cant compile dos??

    I can't seem to get dev-c++ to compile pure dos programs (like TC), the programs always require windows (Unlike TCs programs). Is there a way I can compile pure dos programs? (Without using TC).

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Nope, MinGW can only create Win32 programs.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Do you know of any windows IDE that can create DOS programs?

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You can build 32-bit console programs with gcc, MS Visual Studio etc, but those are 32-bit executables.

    There are 16-bit compilers available, but gcc, as far as I know, doesn't support 16-bit processors at all - or at the least, not 16-bit x86 code.

    I don't think the later versions of Turbo C++ (such as the 2005 version) allows DOS builds either.

    I was going to recommed "bcc" (Bruce Evan's C Compiler) but it seems like it's only Linux, not available for DOS/Windows.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Yarin View Post
    Do you know of any windows IDE that can create DOS programs?
    Turbo C++ if you want 16-bit DOS. It's not a "Windows IDE" but it is an IDE and it can run on Windows (in a DOS box).

    You can use DJGPP to create 32-bit DOS programs. It has a nice IDE called Rhide, again running in a DOS box.

    If you want a real Windows IDE, you can use any of the IDE's people have mentioned here in the past. You just have to use the right compiler.

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I _THINK_ that if you can find an old Borland C++ 3.x or thereabouts, you'd be able to use that as a Windows [32-bit no less] application and build DOS executables. But it's not exactly "current crop" compiler/IDE - it was "current" when I was still living in Sweden some 12-13 years ago.

    Or, if you can find a Visual Studio 1.x (1.52c is/was a VERY good version), that should be able to do that.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile as you type
    By Rocketmagnet in forum A Brief History of Cprogramming.com
    Replies: 33
    Last Post: 12-07-2006, 01:36 PM
  2. Compile crashes certain windows
    By Loduwijk in forum C++ Programming
    Replies: 5
    Last Post: 03-26-2006, 09:05 PM
  3. Using OpenGL with Dev C++
    By Patrdm83 in forum C++ Programming
    Replies: 4
    Last Post: 02-04-2003, 05:57 PM
  4. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 10:32 AM
  5. My Dev compiler won't compile
    By Unregistered in forum C++ Programming
    Replies: 22
    Last Post: 05-04-2002, 06:37 PM