need c compilerss


 
Thread Tools Search this Thread
Top Forums Programming need c compilerss
# 1  
Old 11-21-2006
need c compilerss

I wrote a program in turbo c 3.0 and generated exe file.I copied that exe file to bsd system its not working.I came to know many reasons for that,different operating system(exe file was made in windows xp),turbo c cannot run on bsd.When i compiled using cc, it generates many errors.Does conio.h wont work in unix.Please let me know c compilers in unix environment(AIX,FREEBSD).can i run turbo c program in these compilers or i need to write a new program again?Thanks
# 2  
Old 11-22-2006
So sorry for you!!! can you post the code to better help you!
# 3  
Old 11-22-2006
the program is lengthy.i have taken bgidemo.c now iam using gcc in bsd.how to use graphics.h in gcc
# 4  
Old 11-22-2006
Simply put, this will never work. To put it bluntly, you have NOT been programming in standard C, you've used many proprietary, nonportable, nonstandard Borland-only extensions. UNIX does not have a "graphics.h" because graphics does not work that way in UNIX -- UNIX is not DOS, and UNIX is not Borland.

For it to be possible at all, you'll either need to rip BGI out of your program or find a replacement BGI for UNIX/X11. What exactly does your program do, that it needs graphics?

Last edited by Corona688; 11-22-2006 at 12:50 PM..
# 5  
Old 11-22-2006
my program does

my program draws a line on chart image.By enlarge, i pickup the coordinates from notepad.put a chart image on background, using those cordinates i draw a line on the chart image.
is it ok?
# 6  
Old 11-23-2006
You may be able to do what you want with a small shell script and gnuplot.

Nearly anything will be easier than trying to convert your program to standard C.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question