Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

where can I get a free download for C compiler

Status
Not open for further replies.

SwatiA

Programmer
May 10, 2002
9
IN
Hello , I am a beginer in C programing. Is a C compiler available for Free download on the net? I am currently using MS visual C++ suit to compile my programs.
I want a dos window compiler......from where I can give command line parameters. Is there any way of giving command line parameters while compiling in MS visual C++ suit. As of now I am just clicking the "Execute" button to run my programs.
Swati.
 
Hello Swati,

You can use the command prompt by using Visual C++ suit also, search for the file 'VSVARS32.bat' and put the refernce in you autoexec.bat, then you will be able to compile and link your progarms from the dos prompt using 'cl command'.

alternatively You need to set the bin PATH and the environment variables namely LIB, INCLUDE to reflect the installed directories. like you write in your autoexec.bat

PATH = %PATH%; <path where V Studio is installed>...\VC98\bin

set INCLUDE= <path where the include directory is present >
set LIB = <path where the lib directory is present>


remember to run the c:\autoexec.bat after you make the changes.

As for the free compilers there are plenty of them which you can download from the net. Give a google search for the same. But remember some compilers are made specifically to suit special needs like animation etc. so choose carefully

also keep in mind which platform you want them to run 'If you download a purely DOS compiler it may so happen that it not be able to produce the 32 bit windows code'.

personally i recommand the DJGPP and BloodShed compilers they are nice and relatively stable and standardized.


I would be able to help more if i know what are ur requirements and platform you work on.
Hope this posting helps
Rahul
 
You can give command line arguments in VC++ at

Project > Settings > Debug > Program Arguments
 
Re: LCC:
Good compiler but many header files and libs are missing.
YMMV.
 
I believe the GNU C/C++ (for windows) compiler will build your old-style 16 bit applications. I don't know the link but you can search for it on the web. It also comes on the included CD-ROM with some C/C++ books.
tellis.gif

[sup]programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.[/sup]​
 
Try
There are all sorts should you decide to change platforms. Anyway, from there follow the link to the Digital Mars compiler. That is currently the best one for 16-bit on DOS and it supports C++ STL should you decide to move on from C.

I hope you are not looking for C99. I think only GNU supports C99 at the moment. All the others are C89.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top