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

So sorry for you!!! can you post the code to better help you!

the program is lengthy.i have taken bgidemo.c now iam using gcc in bsd.how to use graphics.h in gcc

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?

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?

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.