View Full Version : Need C compiler

03-01-2005, 04:23 PM
I have a C program, i need a C compiler to run the program..

I tried Borland trial version and mars C compiler but nothing worked..is there any other C compiler u wud recommend..

03-01-2005, 04:35 PM
Hi katz,

I am not sure why the borland C compiler dint work... set the paths to the library files properly... and guess it should work... or u can use the following batch file to run ur code....

bcc32 -Ic:\borland\bcc55\include -Lc:\borland\bcc55\lib %1

save tha above thing to compile.bat and change the path names appropriately in the above text.. and then run by saying

compile filename.c

That is using the borland command line compiler from borland's website....

Otherwise u can try using visual studio or something... let me know if u have any trouble... I have the complete borland debugger... if u want it I can share it or something....

03-01-2005, 04:45 PM
I downloaded the compiler from here
U need to register to get access..
I cudnt find any compile.bat file

03-01-2005, 05:20 PM
Why not use gcc through cygwin?

03-01-2005, 05:37 PM
Katteri the registration is free.... and so I think you should be able to download once u register...

http://www.borland.com/products/downloads/download_cbuilder.html# use this link....

Regarding the compile.bat. download it from this link (http://www.myfilestash.com/userfiles/ashokcsn/compile.bat)... copy this file to ur c:\Borland\BCC55\Bin directory

Then set ur path variable by typing

set path=%path%;c:\Borland\BCC55\B in

in the windows command line

that is it... then u can compile ur code by typing

compile <filename.c>

I am sticking toi borland compiler as it is the easiest to use in a windows environment.... and it is free too...

03-01-2005, 05:40 PM
Why not use gcc through cygwin?

Gcc can also be used using this "devC++" (www.bloodshed.net/devcpp.html). I have used it, and it is a lot simple to use than VC++ or BC++. Just add them all to a project and compile the project. You dont even have to go to the command line. (Note: However, debugging uses gdb and so is difficult)

03-01-2005, 05:58 PM
ashok compile.bat file link is not working

03-01-2005, 06:17 PM

try this link (http://www.geocities.com/ashokcsn_2000/compile.zip)