Friday, January 26, 2007

Running TC in Linux

Last time I posted how 2 use graphics.h in Linux. That really works great 4 me, but there is a simple catch. Sometimes it requires some minor modification to our code. But when you don't have that time to modify the code? Well, there's simple no other way that 2 run Turbo C in Linux. :D

I heard that there is a Linux version of Turbo C out there but could not find any. Then how did I run Turbo C in Linux? I did that in the most stupid way. See 4 yourselves.

#apt-get install dosbox

After installation I did this:

$dosbox

A black window came like below:


Here in the prompt I put this:

Z:\>mount c ~
Z:\>C:

This mounted my home dir to drive letter C.

I had TC installer in my home folder. So ran the installer and installed it this in C:\TC\BIN

C:\TC\BIN>tc

Now I there was the most intriguing part, TC's UI was there. I had 2 set a few environment variable's in TC and then compiled This Program without error:

1 comment:

Anonymous said...

i am trying to install libgraph in my redhat fedora box ,i can not able to work "make And make install" it shows me the following error "Make:***No traget specified and no make file found. stop" could you help me please

Back to Blogging

After a failed attempt last year to get back to blogging, I'm trying it again this year. I really wanted to get back, but got busy will...