Best free C/C++ compiler for a newbie?

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2004
Posts: 133
Reputation: Cup of Squirrel is an unknown quantity at this point 
Solved Threads: 1
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Best free C/C++ compiler for a newbie?

 
1
  #1
Mar 10th, 2005
Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 185
Reputation: Stack Overflow is an unknown quantity at this point 
Solved Threads: 4
Stack Overflow's Avatar
Stack Overflow Stack Overflow is offline Offline
C Programmer

Re: Best free C/C++ compiler for a newbie?

 
1
  #2
Mar 10th, 2005
Hello,

I would recommend Bloodshed Dev-C++ for C++ programming.

If you want to compile C code, I would suggest using a C compiler such as GCC. I'm un-aware of any free available IDE envrionments for the C language. Though you may be able to compile C code in Dev-C++. I've never tried, though.


- Stack Overflow
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [code][/code] tags. Your question may have been asked before, try the search facility.

IRC
Channel: irc.daniweb.com
Room: #c, #shell
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,740
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 739
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Best free C/C++ compiler for a newbie?

 
1
  #3
Mar 10th, 2005
>Though you may be able to compile C code in Dev-C++.
You can. You just need to be sure that the source file extension is .c instead of .cpp.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 133
Reputation: Cup of Squirrel is an unknown quantity at this point 
Solved Threads: 1
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Re: Best free C/C++ compiler for a newbie?

 
0
  #4
Mar 11th, 2005
Ok, downloaded and found an online tutorial and I've already hit a bit of trouble:

  1. // my first program in C++
  2.  
  3. #include <iostream.h>
  4.  
  5. int main ()
  6. {
  7. cout << "Hello World!";
  8. return 0;
  9. }

Thats the program. I compile and run as a .cpp. It seems to compile fine ("hello.exe" appears in folder), but when it comes to running, it shows the DOS box to display the text, and immediatly (spelling?) closes. The log displays something like this:

  1. In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/iostream.h:31,
  2. from /my folder etc/hello.cpp:3:
  3. C:/Dev-Cpp/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
  4.  
  5. Execution terminated
  6. Compilation successful

What am I doing wrong
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 185
Reputation: Stack Overflow is an unknown quantity at this point 
Solved Threads: 4
Stack Overflow's Avatar
Stack Overflow Stack Overflow is offline Offline
C Programmer

Re: Best free C/C++ compiler for a newbie?

 
0
  #5
Mar 11th, 2005
Hello,

You may want to try:
// my first program in C++

#include <iostream>
using namespace std;

int main (void) {
	// Display text
	cout << "Hello World!" << endl;
	// Pause screen
	cin.get();
	// Terminate program
	return 0;
}
The function get() extracts a character from the stream and returns its value. It's a good way of pausing the console screen.


- Stack Overflow
Following the rules will ensure you get a prompt answer to your question. If posting code, please include BB [code][/code] tags. Your question may have been asked before, try the search facility.

IRC
Channel: irc.daniweb.com
Room: #c, #shell
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: Best free C/C++ compiler for a newbie?

 
0
  #6
Mar 11th, 2005
I've used Bloodshed too, very good for beginners.

If you like bells and whistles Microsofts EVT C++ is free from their site, It's designed to compile for programming mobile devices like smartphones or pocket PC's. I've done a couple of tools for my Pocket PC on it, it's a great toy !
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 133
Reputation: Cup of Squirrel is an unknown quantity at this point 
Solved Threads: 1
Cup of Squirrel's Avatar
Cup of Squirrel Cup of Squirrel is offline Offline
Junior Poster

Re: Best free C/C++ compiler for a newbie?

 
0
  #7
Mar 11th, 2005
Ah I was looking at programming for the Palm OS as I have a PalmOne Zire, so I might look into that
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,047
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 935
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Best free C/C++ compiler for a newbie?

 
0
  #8
Mar 11th, 2005
Pelles C is free and comes with support for Pocket PC and Smartphones. It has a great IDE and helpfile!

Download it from:
http://smorgasbordet.com/pellesc/index.htm
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 60
Reputation: murschech is an unknown quantity at this point 
Solved Threads: 1
murschech murschech is offline Offline
Junior Poster in Training

Re: Best free C/C++ compiler for a newbie?

 
0
  #9
Mar 20th, 2005
I've been following this thread and I also downloaded the Bloodshed compiler. Can you tell me where that online tutorial is?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Best free C/C++ compiler for a newbie?

 
0
  #10
Mar 20th, 2005
I would also recommend DevC++, also DJGPP is useful if you want to program old VGA graphics.
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC