943,972 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 42140
  • C++ RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 10th, 2005
1

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

Expand Post »
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
Similar Threads
Reputation Points: 11
Solved Threads: 1
Junior Poster
Cup of Squirrel is offline Offline
133 posts
since Oct 2004
Mar 10th, 2005
1

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

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
Reputation Points: 26
Solved Threads: 4
Junior Poster
Stack Overflow is offline Offline
185 posts
since Sep 2004
Mar 10th, 2005
1

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

>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.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Mar 11th, 2005
0

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

Ok, downloaded and found an online tutorial and I've already hit a bit of trouble:

C++ Syntax (Toggle Plain Text)
  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:

C++ Syntax (Toggle Plain Text)
  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
Reputation Points: 11
Solved Threads: 1
Junior Poster
Cup of Squirrel is offline Offline
133 posts
since Oct 2004
Mar 11th, 2005
0

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

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
Reputation Points: 26
Solved Threads: 4
Junior Poster
Stack Overflow is offline Offline
185 posts
since Sep 2004
Mar 11th, 2005
0

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

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 !
Reputation Points: 262
Solved Threads: 68
Veteran Poster
hollystyles is offline Offline
1,181 posts
since Feb 2005
Mar 11th, 2005
0

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

Ah I was looking at programming for the Palm OS as I have a PalmOne Zire, so I might look into that
Reputation Points: 11
Solved Threads: 1
Junior Poster
Cup of Squirrel is offline Offline
133 posts
since Oct 2004
Mar 11th, 2005
0

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

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
Moderator
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
vegaseat is offline Offline
5,792 posts
since Oct 2004
Mar 20th, 2005
0

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

I've been following this thread and I also downloaded the Bloodshed compiler. Can you tell me where that online tutorial is?
Reputation Points: 21
Solved Threads: 1
Junior Poster in Training
murschech is offline Offline
60 posts
since Dec 2004
Mar 20th, 2005
0

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

I would also recommend DevC++, also DJGPP is useful if you want to program old VGA graphics.
Reputation Points: 16
Solved Threads: 6
Posting Pro in Training
1o0oBhP is offline Offline
445 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: project
Next Thread in C++ Forum Timeline: place get stream pointer at specified line in a textfile





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC