Ask coding questions

← Back to all posts
Why doesn't modern Compilers supports code written in TurboC++
SmarakMarasini (0)

I wrote this code 1year back on TurboC++, it still works fine on TurboC++ compiler but tons of error on modern compilers , even here on . What are the changes in code in these , can someone debug it / help........

Answered by SixBeeps (5225) [earned 5 cycles]
View Answer
JacobMcPherson1 (237)

I found this post on ask ubuntu that might be able to help

SixBeeps (5225)

@JacobMcPherson1 DOXBox is actually a great alternative to VirtualBox, I dunno why I didn't think of it actually. Good on ya.

Though the solution you provided requires sudo, so instead of installing it through apt-get, set up a Nix environment with the pkgs.dosbox derivation.

SixBeeps (5225)

In the Repl you linked, the code is referencing a library named graphics.h which appears to be something only included with TurboC. The issue wouldn't be with the language itself, but rather the things that it came with that aren't on any other compiler.

I doubt that you'd be able to run TurboC or TurboC++ code on here, since those ran on various Microsoft OS's, and Replit runs on Linux. Nobody appears to have compiled it for Nix either, so your best bet would be to set up TurboC++ on a virtual machine and run them there.

SmarakMarasini (0)

@SixBeeps Thanks a lot, but i'm unaware how to download virtual machine on mac .