Computing.Net > Forums > Linux > Program won't work in DOS environment

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Program won't work in DOS environment

Reply to Message Icon

Name: Mike
Date: March 27, 2001 at 19:40:10 Pacific
Comment:

I just compiled a program using linux(gcc) and went ahead to rename it *.exe, tried to run it under DOS but it keeps on giving a fatal error.
Is it that programs compiled in linux don't work with DOS or what?



Sponsored Link
Ads by Google

Response Number 1
Name: Mik
Date: March 28, 2001 at 00:42:09 Pacific
Reply:

You got it!
Dos and linux are two totally different operating systems. So an executable created in one OS will not work in the other OS. In linux there are emulators to run dos programs, however I don't know of any emulators that will run linux programs in dos.
If you want to run the same program in Dos. First of all make sure your code is OS independent. Then get a compiler for dos and make a dos executable using the same code.

Mik


0

Response Number 2
Name: Apple
Date: March 29, 2001 at 14:44:45 Pacific
Reply:

Do a google search for djgpp. It's the DOS version of gcc. It doesn't have sockets, vgalib or anything like that but it will let you write 32-bit, flat memory programs using DPMI. I believe the entire download is about 6 - 8 Mb split into several files.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How do I set up my modem Gamepad needs gameport en...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Program won't work in DOS environment

wireless won't work in mandrake 9.1 www.computing.net/answers/linux/wireless-wont-work-in-mandrake-91/22396.html

56k Modem won't work in RH9! www.computing.net/answers/linux/56k-modem-wont-work-in-rh9/22166.html

Modem won't work www.computing.net/answers/linux/modem-wont-work/4012.html