| View previous topic :: View next topic |
| Author |
Message |
Sepplmeierhuber Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 188
|
Posted: Mon May 14, 2007 2:49 am Post subject: A good WORKING C compiler? |
|
|
Can anyone provide me a link for an good, actually WORKING C compiler?
After a long odyssey into the world of Python I wanna try C.
I use now Dev C++ 4 & UE Studio with all it's available compilers.
Dev C++4 works pretty neat, but for example, when I wanna compile
| Code: | #include <stdio.h>
void main( void )
{
printf ("Test\n");
} |
it doesn't allow me to do this because it wants int main instead of void main. This lil printf is just from a C Tutorial I'm using.
And all those compilers from UE Studio, every single compiler tells me "can't create blablabla.obj" when I want to compile my code =O
Would be really awesome if anyone could give me a nice working compiler ^o^
|
|
| Back to top |
|
 |
compactwater I post too much
Reputation: 8
Joined: 02 Aug 2006 Posts: 3923
|
|
| Back to top |
|
 |
injex Master Cheater
Reputation: 0
Joined: 14 May 2007 Posts: 272
|
Posted: Mon May 14, 2007 4:57 am Post subject: |
|
|
Read what I wrote up there please o.o
I said the bloodshed Dev C++ doesn't compile because it strangely wants me to use int main instead of void main, no matter what.
If anybody wonders why I have a new ACC:
I re-registered because I wanted new name lol =[
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Mon May 14, 2007 5:22 am Post subject: |
|
|
Do you want a free complier? You can compile with VC++, it will compile C and C++ but it costs money. Right know I think you can get the beta for free and you can download the full version from torrents.
_________________
|
|
| Back to top |
|
 |
assaf84 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 238
|
Posted: Mon May 14, 2007 5:37 am Post subject: |
|
|
| Why do u insist on using void main() and not int main() ?
|
|
| Back to top |
|
 |
injex Master Cheater
Reputation: 0
Joined: 14 May 2007 Posts: 272
|
Posted: Mon May 14, 2007 5:43 am Post subject: |
|
|
Dunno, I'm really noob to C.
Until now I just did what the tutorial teached me.
And in this tutorial void main() is used o.o
Edit: Lol Sorry, I've been a real idiot
Anybody mind closing this?
|
|
| Back to top |
|
 |
me Grandmaster Cheater
Reputation: 2
Joined: 24 Jun 2004 Posts: 733 Location: location location
|
Posted: Mon May 14, 2007 9:15 am Post subject: |
|
|
just use the int(main)
it will work with the simple printf ("Test\n"); program you have there,
if you want to try different compilers VC++6 that someone mentioned is free I think,
Borland C++ Builder is not available for download now but it could take some delphi components as well,, not used it but might have a look a download for it,,
anyway just use the console application template for simpilicity and that will take your simple printf program,
[edit]** oh I see you worked it out lol **[/edit]
_________________
|
|
| Back to top |
|
 |
yoyosaint Cheater
Reputation: 0
Joined: 04 Jun 2006 Posts: 26
|
Posted: Tue May 15, 2007 9:02 pm Post subject: |
|
|
ahaha...
Im using borland C! An old version of 3.1v
void main(void)
1st void no return value.
2nd void no argument.
|
|
| Back to top |
|
 |
lul30 Expert Cheater
Reputation: 0
Joined: 03 Oct 2006 Posts: 197
|
Posted: Sat May 26, 2007 4:54 pm Post subject: |
|
|
this is one to for beginners
#include <stdio.h>
#include <conio.h>
int main()
{
printf ("hello,world or Hello me\n");
getch()
}
and Btw this is Really really Beginner
|
|
| Back to top |
|
 |
yoyosaint Cheater
Reputation: 0
Joined: 04 Jun 2006 Posts: 26
|
Posted: Mon May 28, 2007 5:54 pm Post subject: |
|
|
| lul30 wrote: | this is one to for beginners
#include <stdio.h>
#include <conio.h>
int main()
{
printf ("hello,world or Hello me\n");
getch();
return 0;
}
and Btw this is Really really Beginner |
|
|
| Back to top |
|
 |
|