The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: need c compilerss
Michael_Goldman
Newbie
Rank: 1



UID 263
Digest Posts 0
Credits 0
Posts 14
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:49 AM  Profile | P.M. 
need c compilerss



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


Top
darzuaga
Newbie
Rank: 1



UID 106
Digest Posts 0
Credits 0
Posts 50
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:50 AM  Profile | P.M. 
so sorry for you!!! can you post the code to better help you!
Top
deano6410
Newbie
Rank: 1



UID 110
Digest Posts 0
Credits 0
Posts 10
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:50 AM  Profile | P.M. 
the program is lengthy.i have taken bgidemo.c now iam using gcc in bsd.how to use graphics.h in gcc
Top
caburr1
Newbie
Rank: 1



UID 80
Digest Posts 0
Credits 0
Posts 15
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:50 AM  Profile | P.M. 
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 10:50 am.
Top
eukhost
Newbie
Rank: 1



UID 138
Digest Posts 0
Credits 0
Posts 19
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:50 AM  Profile | P.M. 
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.
Top
feelexit
Newbie
Rank: 1



UID 142
Digest Posts 0
Credits 0
Posts 25
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 2, 2007 01:50 AM  Profile | P.M. 
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.
Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:36 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.005731 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP