Reputation: 1
How can I compile a Turbo C program in a DOS prompt for 64 bit?
Upvotes: 0
Views: 1023
Reputation: 34704
You can't run 16-bit applications on Windows x64. However, you can still use DOSBox or a full-blown virtual machine.
Upvotes: 1
Reputation: 881113
Well, there is no 64-bit DOS so I'm assuming you meant the cmd.exe
prompt.
In that case, Turbo C doesn't produce 64-bit code and may well not even run on 64-bit windows, given its age (though I don't know this).
You'd be better off getting gcc
(free as in beer and speech) or even Visual C++ Express (free as in beer). Turbo C is a dinosaur and there's really no need to use it for anything nowadays.
Upvotes: 3