Thread: Compiling for DOS

  1. #1
    Unregistered
    Guest

    Compiling for DOS

    I have msvc++ 6.0 I was wondering if I can compile to run in dos I wrote a program for my internship and it runs excellent in windows command but it won't run under dos cause it is 32 bit can anyone help

    Ryan

  2. #2
    Registered User raimo's Avatar
    Join Date
    Jun 2002
    Posts
    107
    Get djgpp or some other dos compiler.

  3. #3
    Unregistered
    Guest

    Use

    Use Turbo C++ 1.0
    or Turbo C++ 3.0 (this is better)

  4. #4
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    MSVC++ 6.0 is 32-bit only. Like the others here have already said, you need to get a 16-bit compiler to make DOS executables.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  5. #5
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    you don't necessarily need a 16-bit compiler, but you will have to deal with real time. in DJGPP you have a 32-bit interface and the freedom of a flat-memory module, www.delorie.com/djgpp bon appetite!
    hasafraggin shizigishin oppashigger...

  6. #6
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    msvc++ only compiles windows apps...if you want console, then download Dev-C++ 4, (5 has soo many bugs in it, its UNREAL!!!)
    .

  7. #7
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Actually if you get on old school MSC compiler or MSVC++ 2.0 and lower you can do your dos stuff.

  8. #8
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Actually if you get on old school MSC compiler or MSVC++ 2.0 and lower you can do your dos stuff.
    Yeah, I've got MSVC++ 6.0 for all my 32-bit needs. I don't have 2.0 but I do have 1.5 which I use for all my 16-bit DOS needs.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Compiling Problem
    By Deronius in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2008, 11:23 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. Problem Compiling
    By Flakster in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 01:09 AM
  4. compiling and executing issue with lcc win32
    By GanglyLamb in forum C Programming
    Replies: 10
    Last Post: 12-22-2004, 02:24 PM
  5. Compiling syntax
    By Jez_Master in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2002, 09:46 PM