Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-08-2004, 07:49 PM   PM User | #1
SDP2006
Regular Coder

 
Join Date: May 2003
Location: 34° 54' N 82° 13' W
Posts: 996
Thanks: 0
Thanked 0 Times in 0 Posts
SDP2006 is an unknown quantity at this point
C Compiler

Can someone recommend a C compiler for windows with a link provided? Thanks.
__________________
Stevie Peele
Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
#dev - any programming,etc. question
#design - design discussion and critque
#central - general chat
Come join us!
SDP2006 is offline   Reply With Quote
Old 04-08-2004, 08:19 PM   PM User | #2
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
http://www.bloodshed.net/devcpp.html

it's the sex. only good C/C++ IDE ive found to date. (even in my n00bness, i'd recomend you learn C++ first)
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 04-09-2004, 01:06 AM   PM User | #3
SDP2006
Regular Coder

 
Join Date: May 2003
Location: 34° 54' N 82° 13' W
Posts: 996
Thanks: 0
Thanked 0 Times in 0 Posts
SDP2006 is an unknown quantity at this point
Thanks, I just happened to pick the book up at a the library today and it was on C, so I'd figure I'd give it a shot. Maybe I'll take C++ when that book comes in.

Thanks
__________________
Stevie Peele
Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
#dev - any programming,etc. question
#design - design discussion and critque
#central - general chat
Come join us!
SDP2006 is offline   Reply With Quote
Old 04-09-2004, 01:26 AM   PM User | #4
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
C++ is backwards compatible with C but there are some massive differences if you start with C++ and revert to C. C++ in my oppinion is a great place to start as well...

Jason
Jason is offline   Reply With Quote
Old 04-09-2004, 05:51 AM   PM User | #5
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,911
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
Borland do a set of free tools including a compiler (all command line tools) , also think about getting Cygwin if you like to play with the command line, also google for ming.
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is online now   Reply With Quote
Old 04-09-2004, 04:07 PM   PM User | #6
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
bloodshed DEV-c++ is an IDE for mingw, and borland tools are a pain to use seeing as it's command line.

what are you peeps fav compilers(commerical and free included)
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 04-09-2004, 07:09 PM   PM User | #7
JPM
Regular Coder

 
Join Date: Mar 2004
Location: Norway
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
JPM is an unknown quantity at this point
I downloaded the bloodshed DEV-c++ compiler. And I just started a tutorial, but how do I view the results of what I do.. Like if i type :
int main()
{
cout<<"TEST TEST ";
return 0;
}

into the compiler. I try pressing the run command, but nothing happens..
__________________
<JPM />
JPM is offline   Reply With Quote
Old 04-09-2004, 07:50 PM   PM User | #8
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
thats because you have to compile the program before runing it
Execute->compile: compiles your code into computer code
Execute->Run: runs program, after it has been compiled
Execute->Compile and Run: ...
Execute->Rebuild all: will entirly recompile your project (normal compile doesn't always recompile all files)
Execute->Debug: debug your program
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 04-09-2004, 09:03 PM   PM User | #9
JPM
Regular Coder

 
Join Date: Mar 2004
Location: Norway
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
JPM is an unknown quantity at this point
But all that happens when I run the program (after it has been compiled) is a command promt shows up for about 0.1 seconds.

I have no idea what Im talking about, but should't something show the result in some way...?
__________________
<JPM />
JPM is offline   Reply With Quote
Old 04-10-2004, 01:37 PM   PM User | #10
shmoove
Regular Coder

 
Join Date: Dec 2003
Posts: 367
Thanks: 0
Thanked 0 Times in 0 Posts
shmoove is an unknown quantity at this point
That command prompt is showing up, printing out "TEST TEST" just like you programmed it to, and then closing because your program is finished. If you open a command prompt, and run the exe you built from there you'll see the "TEST TEST". Or you could add some code to make the program pause before it exits and see it when you run from the IDE as well.

shmoove
shmoove is offline   Reply With Quote
Old 04-11-2004, 10:32 AM   PM User | #11
Mhtml
Senior Coder

 
Mhtml's Avatar
 
Join Date: Jun 2002
Location: Sydney, Australia
Posts: 3,531
Thanks: 0
Thanked 1 Time in 1 Post
Mhtml is an unknown quantity at this point
Arrow

Yeah, typically most people use system("PAUSE") at the end of their main() (before return of course )..
__________________
Omnis mico antequam dominus Spookster!
Mhtml is offline   Reply With Quote
Old 04-19-2004, 02:48 AM   PM User | #12
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
I'm not a fan of DevCPP. Although it's one of the only compilers I found that doesn't require a compiler to compile itself (chicken...egg loop). I always got lost with non-gui compilers. But DevCPP seems overbloated. Just to save a file, it wants me to give it a "project name" (total waste of time). And the real pain is that the CPP file cannot have the same name as the project name. So I find myself making random names for the CPP file since I wasted the meaningful name on the project name. All I wanted was to make a CPP file and compile it, while having the luxuries of syntax highlighting and col/row count. This and more can be found in Editplus. I'm no C expert but I prefer something that doesn't make me more confused than I already am. Errors such as "return value is not an int" in void functions is a total mess.
Tails is offline   Reply With Quote
Old 04-19-2004, 11:33 AM   PM User | #13
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
devcpp isn't technicaly a compiler, its an IDE which uses the mingw compiler. for small projects it's true that its a pain to have to use projects(and MSVC++ is the same apparntly) but if your going to compile a small project just use mingw without going through devcpp. why is "return value is not an int" in void functions is a total mess? thats the compiler result not devcpp

on a sidenote, any cheapies want to compile with MSVC++
http://msdn.microsoft.com/visualc/vctoolkit2003/
it's what borland free compiler is the borland C++ builder
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:41 PM.


Advertisement
Log in to turn off these ads.