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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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 ;-)
You can use DJGPP, a GCC for DOS
www.delorie.com/djgpp/
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.
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
See also OpenWatcom and Digital Mars compilers.
thank people for helping me out :)
can i get Dev C++ to use there compilers?
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
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