PDA

View Full Version : Porting TurboC to source code to GNU ?????



NawafLol
September 21st, 2009, 06:51 AM
sorry its : Porting Turbo C source code to GNU ?????


I have found an interesting site http://www.sandroid.org/TurboC/

but could not get around it every thing was about SuSE and FreeBSD

can anyone help me cause i want to use turbo c header files in ubuntu 9.04

i like the GNU but i want the turbo c header files two !

dribeas
September 21st, 2009, 08:23 AM
What are you missing from turbo C when you work in a modern linux environment? My advice is trying to find alternatives, as TurboC is basically dead, and all time invested in using the specifics will be worthless for real development.

dE_logics
September 21st, 2009, 09:02 AM
What exactly are the headers which are causing the problem?

NawafLol
September 21st, 2009, 08:29 PM
will conio.h and graphics.h

and GNU is a bit hard to use i always get more errors than Turbo C

and most of the books i bought they talk about programming in the Turbo C Environment !

if anyone have a GNU compiler lesson or headstart that will be good two ..

NawafLol
September 22nd, 2009, 02:31 AM
so anyone !

lisati
September 22nd, 2009, 02:35 AM
Welcome to the world of GNU/Linux and portability.

What I would suggest is that in the long run, looking for alternatives to the the routines that "require" the Turbo C headers would be a good move, as many of them are likely to be MS-DOS specific.

fct
September 22nd, 2009, 08:07 AM
will conio.h and graphics.h

and GNU is a bit hard to use i always get more errors than Turbo C

and most of the books i bought they talk about programming in the Turbo C Environment !

if anyone have a GNU compiler lesson or headstart that will be good two ..

Those books sound quite outdated, since Turbo-C is a really outdated tool. I suggest that you install dosbox ( http://dosbox.sf.net ) so you can run Turbo-C there.

But just to learn by those books. You should move on to others that aren't tied to Borland's techonologies.

"The C Programming Language" by Kernighan & Ritchie was written by the authors of C and is UNIX-centric, so it should be easier to use what you learn in a linux environment.

NawafLol
September 26th, 2009, 10:12 PM
thanks i'm already using dosbox is working but i want the conio.h header file in the gnu compiler !

i will look for this "The C Programming language" book !

tom66
September 27th, 2009, 01:07 AM
I believe tere exists a conio.h in GCC, but it's not common. It doesn't offer any of the advanced features that the DOS version did: no colors, for example. Only basic I/O was supported (getch, putch).

Take a look at ncurses for the kind of features you may be looking for.

Borland Turbo C... how old is that? It probably doesn't throw so many errors because it's too old to have all of the new features compilers have which can spot simple programming errors which cause crashes.

phrostbyte
September 27th, 2009, 03:22 AM
Basically you run the code against the compiler and fix all the compiler errors one by one. It's much fun. :P

lisati
September 27th, 2009, 03:25 AM
Basically you run the code against the compiler and fix all the compiler errors one by one. It's much fun. :P

And potentially more time consuming if you work backwards from the last error or warning presented.....

NawafLol
September 27th, 2009, 02:45 PM
Thanks every one, i must say programming at linux was alittle bit tricky for me !

but i like it ! and yet couldn't find the conio.h header file !