C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-04-2008, 06:28 PM   #1
Registered User
 
Join Date: Jun 2008
Posts: 11
Unhappy I need help picking a compiler.

I'm really new to programming but I would like to learn C++
but I've already hit a snag, I don't know what to look for in a compiler!

I guess my question is this:

What should i use as a compiler? I'm not sure exactly what i want to do yet since I'm not even sure what's possible (Though I'd like to get into a programming job someday)

Also if it helps I'm running windows vista.

I've heard a lot about Bloodshed's compiler but I don't know how to get a hold of it. The website here said to get version 4 but that link is broken and i don't know where to get it.

Anyways, any information you guys could provide me would be awesome! I'm sorry if it's an obvious question that's been asked a million times over. I'm just not sure how to start out is all.
avaldi is offline   Reply With Quote
Old 06-04-2008, 06:42 PM   #2
and the Hat of Guessing
 
tabstop's Avatar
 
Join Date: Nov 2007
Posts: 8,740
It is probably wise to note here that Bloodshed does not, has not, and I'm guessing will never have, a compiler. They do make an IDE (stands for integrated development environment -- basically a nice text editor + bells and whistles + an interface to somebody else's compiler, so that when you hit F9 it calls gcc (or whatever) for you), although it is not (I've heard) easily-Vista-compatible. (Or at least the person I know who has Dev-C++ on Vista would have it crash several times during a four-hour lab.)

The easiest thing to do would be to get Visual Studio Express from Microsoft, which costs $0.00 + however long it takes to download and install it. This is a compiler and IDE and everything else, rolled in to one package.
tabstop is offline   Reply With Quote
Old 06-04-2008, 06:44 PM   #3
Registered User
 
Join Date: Jan 2005
Posts: 7,137
If you get Bloodshed's IDE (it is an IDE, not a compiler), which is named Dev-C++, then get the version 5 beta (4.9.9.2). Version 4 is too old. While Dev-C++ is good for beginners it is no longer being worked on, so you might consider another option.

Code::Blocks is also a good IDE that may be more beginner friendly than Visual C++.

Visual C++ Express Edition is free and good if you're really serious about using C++. It takes some effort to set it up to do only standard C++, but once you figure that out it is IMO the best IDE available on Windows.

Each of those IDEs come with compilers, either a port of g++ or the Visual C++ compiler for the third option. The compilers are generally comparable, so I would focus on getting the IDE that you like best.
Daved is offline   Reply With Quote
Old 06-04-2008, 07:42 PM   #4
Registered User
 
Join Date: Dec 2006
Posts: 1,780
there are several IDEs as mentioned (Code::Blocks, Dev-C++, VS), but only 3 compilers (those with < 0.1% market share don't count =)).

GCC:
a free and opensource compiler used by Code::Blocks and Dev-C++ (by default anyways). It is being actively maintained, and stable + fast. It's the main compiler everywhere outside the Windows world (Linux, Mac, UNIX...)

Microsoft compiler:
used by VS. Too commercial for my liking, but apparently many people use it (on Windows). Quality should be comparable to GCC. Note that it only runs on Windows. Therefore, if you want to be 100% sure that your code can be compiled everywhere (Win, Mac, Linux), I recommend GCC.

Intel compiler (ICC):
A commercial compiler by Intel (although Linux version is free for non commercial use). Takes advantage of the latest technologies in Intel CPUs. Tend to be a bit faster (on latest and greatest Intel CPUs anyways). Usage is very similar to GCC. I believe it has an option to be integrated to VS on Windows, not sure, though.

I strongly recommend GCC (free and high quality and portable).
cyberfish is offline   Reply With Quote
Old 06-05-2008, 03:59 PM   #5
Registered User
 
Join Date: Jun 2008
Posts: 11
Smile

thanks guys!

I'm just starting out so sorry if any of the questions i might ask are obvious. I appreciate all of your help!
avaldi is offline   Reply With Quote
Old 06-05-2008, 04:24 PM   #6
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
Quote:
Originally Posted by cyberfish View Post
Intel compiler (ICC):
...I believe it has an option to be integrated to VS on Windows, not sure, though.
Just to confirm, yes it has.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-05-2008, 05:57 PM   #7
Registered User
 
Join Date: May 2004
Posts: 1,362
Quote:
Originally Posted by cyberfish View Post
Note that it only runs on Windows. Therefore, if you want to be 100% sure that your code can be compiled everywhere (Win, Mac, Linux), I recommend GCC.
Well if you write portable code it shouldn't be a problem which compiler you use.
Even though at the moment I am using Visual Studio Express, I much prefer gcc with Code::Blocks.
sand_man is offline   Reply With Quote
Old 06-05-2008, 07:32 PM   #8
Registered User
 
Terran's Avatar
 
Join Date: May 2008
Location: Nashua, NH
Posts: 106
try wxDevC++, its an updated version of DEVC++ that works pretty well with vista plus it comes with wxWidgets.
__________________
Sorry, but i'm a Code::Blocks man now.
Terran is offline   Reply With Quote
Old 06-05-2008, 08:09 PM   #9
Registered User
 
Join Date: Dec 2006
Posts: 1,780
Code:
Well if you write portable code it shouldn't be a problem which compiler you use.
Yes. Theoretically and for some small programs.

For anything big you will run into practical issues (compiler extensions and such).

Writing portable code does help, so does isolating compiler dependent code (intrinsics come to mind, and the infamous "long long" vs "__int64" or whatever it is for MS compiler).
cyberfish is offline   Reply With Quote
Old 06-06-2008, 12:01 AM   #10
Registered User
 
Join Date: Jun 2008
Posts: 11
I think i will end up going with codeblocks but i have a another newbie question. (I'm honestly very sorry if it's a silly question, but I just want to make sure i have my stuff together. I really appreciate your guys information a lot!)

Will i be able to follow the tutorials on this website ok with codeblocks? or will I have to learn a different way of going about learning C++ using codeblocks with GCC?

Anyways, thanks again for all of your help guys!
avaldi is offline   Reply With Quote
Old 06-06-2008, 12:04 AM   #11
Registered User
 
Join Date: Dec 2006
Posts: 1,780
nothing wrong with being newbie, we all have been one, and I am still one =).

you can follow the tutorials fine. C++ is C++ afterall, no matter what IDE/compiler you use.

what I said earlier about incompatibility between compilers is for more advanced/specialized stuff that you won't be touching in at least a few months.
cyberfish is offline   Reply With Quote
Old 06-06-2008, 12:14 AM   #12
Registered User
 
Join Date: Jun 2008
Posts: 11
Oh ok! i ended up downloading the codeblocks-8.02mingw-setup.exe

I hope I have everything i need now. I panicked when i saw the part on the C++ tutorial it mentions "ANSI/ISO". Since I don't know hardly anything yet I wondered if this is something i should be worried about or if i have everything.

Thank you very much everyone for giving me the advice I need!
avaldi is offline   Reply With Quote
Old 06-06-2008, 12:31 AM   #13
Registered User
 
Join Date: Dec 2006
Posts: 1,780
That should do fine.

ANSI/ISO C++ basically means standard C++. Basically, don't use a prehistoric IDE/compiler because they may not support standard C++ (C/C++ used to be differently implemented by different vendors in the old days, before it was standardized). You will be fine with what you downloaded.
cyberfish is offline   Reply With Quote
Old 06-06-2008, 12:47 AM   #14
Registered User
 
Join Date: Jun 2008
Posts: 11
Talking

OK! Thank you! I really appreciate you all taking some time to help me get started out!^^
I guess I'm off to go study until my brain explodes! ...Well maybe not THAT long but close enough

Thanks again!
avaldi is offline   Reply With Quote
Old 06-06-2008, 09:16 AM   #15
Registered User
 
guesst's Avatar
 
Join Date: Feb 2008
Location: Lehi, UT
Posts: 179
Hey, is that an open can of worms in your hands?

Lemme toot my own horn here for a second, I've put a lot of work to get newbies like you started and I'd be interested in the feedback. So here's my page on getting Code::Blocks with MinGW started.

Of course VisualC++ is more the "professional" choice, C::B w/ MinGW is easier for beginners.
__________________
Type-ins are back! Visit Cymon's Games at http://www.cymonsgames.com for a new game every week!
guesst is offline   Reply With Quote
Reply

Tags
c++, compiler

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
added start menu crashes game avgprogamerjoe Game Programming 6 08-29-2007 01:30 PM
Compiler Paths... Cobra C++ Programming 5 09-26-2006 04:04 AM
C Compiler and stuff pal1ndr0me C Programming 10 07-21-2006 11:07 AM
I can't get this new compiler to work. Loduwijk C++ Programming 7 03-29-2006 06:42 AM
how to call a compiler? castlelight C Programming 3 11-22-2005 11:28 AM


All times are GMT -6. The time now is 07:07 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22