New Posts  All Forums:Forum Nav:

Best compiler for C++

post #1 of 21
Thread Starter 
My new years resolution was to learn a programming language, as such, I chose C++. I know that I need a compiler but after (somewhat limited) searching I found a ton of different compilers. Any suggestions as to which I should use and why? I don't really care about price, I just want the best compiler out there. Mostly going to be in Windows 8.1, but I also have a dedicated Ubuntu 13.10 install to toy around with.

Thanks for any advice!
post #2 of 21
For Windows I have to recommend MinGW (because I like to use Netbeans, and that works well with it)
For Linux, just use g++ (GNU C++ compiler, if not already installed, you can install it on Ubuntu with sudo apt-get install g++ )
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #3 of 21
in windows i have always found that the visual studio environment helped me a lot when getting started due to the inteli sense features. just be sure to always start from an empty project since it likes to add lots of files you likely don't need yet.

if you are a student currently enrolled you can get visual studio 2013 pro for free from dreamspark. however i believe you can get the express edition free of charge regardless.

I love that i am fighting with G++ right now. but i too recommend it for your ubuntu system.
ROG - D-Frame
(26 items)
 
  
CPUMotherboardGraphicsRAM
4770k Maximus VI Extreme Asus GTX 780 DCII Gskill Trident 2400Mhz 
Hard DriveHard DriveOptical DriveCooling
Kingston v300 Caviar Black Asus External Slim Blu Ray Drive Corsair AF120 Performance Edition 
CoolingCoolingCoolingCooling
EK XTX CoolStream 480 RAD EK M6E Nickel Motherboard Block EK DDC X-Res 140 w/ 3.25 DDC Pump EK Asus GTX780 DCII GPU Block 
CoolingCoolingCoolingOS
PrimoChill 1/2" Rigid Acrylic Tube - Red PrimoChill Ghost Compression Fittings - Ano Black Corsair SP120 PWM Performance Edition Microsoft Windows 8.1 Pro 
MonitorKeyboardPowerCase
X-Star 1440p 27" IPS Display Logitech G710+ EVGA Supernova NEX 1500 In-Win D-Frame 
MouseMouse PadAudioOther
Logitech G602 Corsair Vengeance MM200 Asus Xonar Phoebus Custom CNC Case Riser / Radiator Housing 
OtherOther
Pioneer SP-PK22BS & SW-8MK2 5.2 Channel Speakers Sony STR-DH550 5.2 Channel A/V Receiver  
  hide details  
Reply
ROG - D-Frame
(26 items)
 
  
CPUMotherboardGraphicsRAM
4770k Maximus VI Extreme Asus GTX 780 DCII Gskill Trident 2400Mhz 
Hard DriveHard DriveOptical DriveCooling
Kingston v300 Caviar Black Asus External Slim Blu Ray Drive Corsair AF120 Performance Edition 
CoolingCoolingCoolingCooling
EK XTX CoolStream 480 RAD EK M6E Nickel Motherboard Block EK DDC X-Res 140 w/ 3.25 DDC Pump EK Asus GTX780 DCII GPU Block 
CoolingCoolingCoolingOS
PrimoChill 1/2" Rigid Acrylic Tube - Red PrimoChill Ghost Compression Fittings - Ano Black Corsair SP120 PWM Performance Edition Microsoft Windows 8.1 Pro 
MonitorKeyboardPowerCase
X-Star 1440p 27" IPS Display Logitech G710+ EVGA Supernova NEX 1500 In-Win D-Frame 
MouseMouse PadAudioOther
Logitech G602 Corsair Vengeance MM200 Asus Xonar Phoebus Custom CNC Case Riser / Radiator Housing 
OtherOther
Pioneer SP-PK22BS & SW-8MK2 5.2 Channel Speakers Sony STR-DH550 5.2 Channel A/V Receiver  
  hide details  
Reply
post #4 of 21
Quote:
Originally Posted by TrevJonez View Post

in windows i have always found that the visual studio environment helped me a lot when getting started due to the inteli sense features. just be sure to always start from an empty project since it likes to add lots of files you likely don't need yet.

if you are a student currently enrolled you can get visual studio 2013 pro for free from dreamspark. however i believe you can get the express edition free of charge regardless.

I love that i am fighting with G++ right now. but i too recommend it for your ubuntu system.

Intellsiense is just a code-completion feature, which any decent IDE has (for example, Netbeans). The OP asked for a compiler, not an IDE. smile.gif Either way, for a good IDE to go with the compiler I have to recommend Netbeans. Its the best one I've used so far, and supports many languages, not just the C based ones. rolleyes.gif It also has a lot of good plugins, for example, for developing CUDA applications using CUDA-C language.
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #5 of 21
Thread Starter 
Stupid question, but what is an IDE?
post #6 of 21
Quote:
Originally Posted by Skillers Inc View Post

Stupid question, but what is an IDE?

Integrated development environment. smile.gif

Basically, it means an application, or a collection of applications that you use for developing applications and such. smile.gif They offer greater features than just notepad, for example, code-completion help, show you where you have typos and such, and other help.
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #7 of 21
Thread Starter 
I'm using a compiler called code::blocks, it said it uses mingw, also it was mentioned in the book I'm reading.
post #8 of 21
Quote:
Originally Posted by Skillers Inc View Post

I'm using a compiler called code::blocks, it said it uses mingw, also it was mentioned in the book I'm reading.

Windows
CodeBlocks is an IDE and MinGW is a way to run the Gnu Compiler Collection in windows (Another would be TDM). Since you are using CodeBlocks and (I assume) you used the installer that also installed MinGW, you're fine. If you'd like to try other compilers you can download Visual Studio (as suggested by TrevJonez). VisualStudio is an IDE made by Microsoft and it's default C/C++ compiler is Microsoft's C/C++ Compiler. You could even try LLVM/Clang. I'm sure there is a Clang installer for windows, but I've never really looked for one since I'm fine with GCC.

Linux
In all likelihood GCC should be already installed as a base package in most distros, but you can use LLVM/Clang. If you like CodeBlocks as your IDE you can install it in Linux as well.
post #9 of 21
New to programming? And you're starting off with C++? I wouldn't recommend that, nor would most reasonable people; something like Python makes way more sense, but if you're sticking to C++, power to you I guess!

- GCC/G++ on Linux, should be available on Ubuntu by default.
- Clang is another good option; the error messages during compilation are better than the GNU compilers.
- Probably Visual C++ on Windows. Easiest way would be to use Visual Studio, Express is free and you get all the niceness of developing with an IDE, which is great for starting out.

Don't pay for a compiler.
post #10 of 21
Quote:
Originally Posted by Skillers Inc View Post

... Any suggestions as to which I should use and why? I don't really care about price, I just want the best compiler out there. Mostly going to be in Windows 8.1, but I also have a dedicated Ubuntu 13.10 install to toy around with.

Hi Skillers Inc,
my answer and suggestion is one only: Intel Parallel Studio XE

There is the speed - the most driving force behind the whole programmessing stuff.
You mention Linux, well it is a problem (not that Intel doesn't offer Linux compiler), maybe after all it is better to stick to GCC (GNU Compiler Collection).

I am an amateur but ... advanced, so take my advice properly.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming