Teen Programmers Unite  
 

 

Return to forum top

C dos/windows compilers

Posted by triplec1986 [send private reply] at July 16, 2001, 03:05:53 PM

Is there a compiler in c for both dos and windows?

Posted by Psion [send private reply] at July 16, 2001, 03:18:48 PM

Like I told you on AIM, you don't want to use DOS!! Older versions of Windows (like 9x) are actually still running on DOS, so you should be able to use DOS programs with some degree of contortion, depending on Various Factors. Newers Windowses claim to be separate from DOS, so it could be a pain there. Again, there is no reason I can see for you to want to use DOS instead of Windows console programs in learning C.

Posted by sphinX [send private reply] at July 17, 2001, 12:57:06 AM

Well, Windows 2000 and XP, instead of working in unision with 16-bit DOS like in Win9x/ME actually *emulate* DOS with 32-bit code. That is why often DOS programs seem to run a lot slower on 2000 and also why they are sometimes unstable. As for learning some sort of console based programming as opposed to full Windows GUI programs, I'd really suggest learning Linux programming, and then using something like Cygwin to compile your Linux code for the Windows console, as Cygwin provides a rather complete POSIX/Unix code layer that interfaces with Windows. You can find it at sourceware.cygnus.com

Posted by CHollman82 [send private reply] at July 17, 2001, 07:32:41 PM

Let me be the first to actually answer your question. Borland C++ lets you create projects for either DOS or Windows

Posted by lordaerom [send private reply] at July 17, 2001, 09:28:33 PM

I'd think that by DOS, he actually means console. Most curent C/C++ compilers will generate win32 console mode executables for you, yes. If you really do mean _DOS_ then yes, there are compilers for DOS, but for Windows and _DOS_, I'm not entirely sure. Do you mean _DOS_, or 'console mode'? I suspect that maybe you mean the second, and, as such, I think Psion already answered your question.

Posted by CHollman82 [send private reply] at July 17, 2001, 10:19:02 PM

Oh, I see. But any DOS executable created in BCPP (in windows) will also run in pure DOS in addition to the shell. If he wants a DOS/WIN developement environment I don't think one exists (of course he could run a DOS one in the shell, but I don't think thats what he means)

Posted by sphinX [send private reply] at July 18, 2001, 02:12:25 AM

Of course there's always the coupling of DJGPP and RSXNTDJ, but that is *definately* not recommended as RSXNTDJ has not been updated for years.

Posted by triplec1986 [send private reply] at July 19, 2001, 02:43:37 PM

Ok. I meant a console environment, i just got them mixed up becasue they look the same, but Psion alrady cleared that up for me. Thanx Anyways.

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.