>
New Topic
>
Reply<
Esato Forum Index
>
General discussions >
Non mobile discussion
> Free C compiler?
Bookmark topic
I'm looking for a free C compiler that I can run on my Windows XP pc.
It can be full windows or windows command line based and I'm not interested in a C++ compiler
I was sure there would be a GNU one but so far have not been able to locate it or any other so any ideas or links (legal ones please) would be appreciated
ta!
--
Posted: 2005-05-27 22:00:48
Edit :
Quote
Might be interesting
--
Posted: 2005-05-27 22:30:29
Edit :
Quote
thanks Jim, however that one doesn't seem to be able to cope with this simple program
#include
void main()
{
printf("Hello World\n");
}
it gives an error "illegal return type: found 'int' expected 'void'"
although it was able to run some more complex code
--
Posted: 2005-05-27 22:59:58
Edit :
Quote
Are you learning this Mas or are you already well educated in this ?
I only ask cause i got a few books on it and finding it hard to get a grasp of it
sorrry to take it a little of subject.
--
Posted: 2005-05-27 23:50:38
Edit :
Quote
Masseur was it a copy and paste cause you have printf and afaik it's print, might be that the error.
--
Posted: 2005-05-28 00:26:24
Edit :
Quote
Quote:
On 2005-05-27 22:59:58, masseur wrote:
thanks Jim, however that one doesn't seem to be able to cope with this simple program
#include
void main()
{
printf("Hello Worldn");
}
it gives an error "illegal return type: found 'int' expected 'void'"
although it was able to run some more complex code
well what files are you trying to include? unless you have removed this for the sake of your post
--
Posted: 2005-05-28 00:29:00
Edit :
Quote
@masseur
If you want a decent IDE then you might want to check out
Microsoft's Visual C++ 2005 Express Edition.
Additionally, if you want your code to compile you will need to include the Standard I/O library (printf requires this).
#include <stdio.h>
For documentation, use the
MSDN Library.
[ This Message was edited by: mwarner on 2005-06-02 09:19 ]
--
Posted: 2005-05-28 00:47:17
Edit :
Quote
@DJcreamz, I've been doing IT for 25 years, 20 of these as a contractor (freelance) and work with C frequently but want to have a compiler on my pc for the occassions when I want to play and try a few things
there is a pretty good beginners tutorial
here and a pretty good pointers, arrays and strings tutorial
here
@mwarner, @Jim, @Rieley: that was a cut and paste error, the #include was supposed to say (of course)
#include <stdio.h>
(after making this post the header file name didn't appear again I realised why it wasn't visible first time I posted. The left angle bracket makes it look like the start of a html tag but since it isn't a valid tag it is simply not displayed. I have now edited this post and ticked the box saying "disable HTML on this post" and now you can see it

)
but its definitly printf (thats a formatted print) that I am using
I always try a basic program when playing with a new compiler and then try a few more code samples gradually getting more complicated until I am satisfied with it. I used to have a compiler on my old PC but didn't save the install when I got my new VAIO and cannot find that one any more.
I'll check out that Microsoft offering. I'm not really a GUI developer but C++ supports all C syntax so that might well be the way to go though I'd prefer a good, simple and quick compiler
thanks!
_________________
Unless I'm very much mistaken...
my reviews:
V800 K700i[ This Message was edited by: masseur on 2005-05-28 06:40 ]
--
Posted: 2005-05-28 07:07:39
Edit :
Quote
well i have a Turbo C++ version 3.0 compiler from Borland International. I use it all the time for C programming. It can also compile C++ (duh !

). It does have a UI although it's an old DOS type one.

If you want it, let me know
--
Posted: 2005-05-28 09:01:31
Edit :
Quote
Quote:
but its definitly printf (thats a formatted print) that I am using
Oh ok I'm not really used to C, more on PHP which comes from C so I thought that it was the error

.
--
Posted: 2005-05-28 10:28:56
Edit :
Quote
New Topic
Reply