User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 375,210 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,268 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 11375 | Replies: 11
Reply
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation: Cup of Squirrel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
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  
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Location: Overflow State
Posts: 183
Reputation: Stack Overflow is an unknown quantity at this point 
Rep Power: 4
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?

  #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  
Join Date: Sep 2004
Posts: 6,009
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 26
Solved Threads: 413
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

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

  #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.
Member of: Beautiful Code Club.
Reply With Quote  
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation: Cup of Squirrel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
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?

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

// my first program in C++

#include <iostream.h>

int main ()
{
  cout << "Hello World!";
  return 0;
}

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:

In file included from C:/Dev-Cpp/include/c++/3.3.1/backward/iostream.h:31,
                 from /my folder etc/hello.cpp: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.

Execution terminated
Compilation successful

What am I doing wrong
Reply With Quote  
Join Date: Sep 2004
Location: Overflow State
Posts: 183
Reputation: Stack Overflow is an unknown quantity at this point 
Rep Power: 4
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?

  #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  
Join Date: Dec 2004
Location: Allentown, PA
Posts: 60
Reputation: murschech is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
murschech murschech is offline Offline
Junior Poster in Training

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

  #6  
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  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,161
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 58
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

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

  #7  
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  
Join Date: Oct 2004
Location: Southwest UK
Posts: 131
Reputation: Cup of Squirrel is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
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?

  #8  
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  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,337
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 171
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

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

  #9  
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  
Join Date: Dec 2004
Location: Devon - UK
Posts: 420
Reputation: 1o0oBhP is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 2:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC