Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › What do you guys recommend for a C/C++ etc. Compiler on Linux?
New Posts  All Forums:Forum Nav:

What do you guys recommend for a C/C++ etc. Compiler on Linux? - Page 3

post #21 of 37
Just use gedit and write a Makefile.

Don't rely on tools to do all of your work for you. If you have no idea how the compile process actually works you're just going to make life difficult for you and everyone around you later on.
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i5 4670k ASUS Maximus VI Gene Gigabyte GTX 460 1GB Kingston Hyper-X 
Hard DriveHard DriveHard DriveHard Drive
Samsung 830 OCZ Vertex 3 WD6401AALS WD5000AAKS 
CoolingOSMonitorMonitor
Noctua NH-D14 elementary OS Dell Ultrasharp U2312HM LG W2442PA-BF 
KeyboardPowerCaseMouse
Microsoft Sidewinder X4 Corsair HX750W Corsair Graphite 600T Logitech G700 
Audio
ASUS Xonar DG 
  hide details  
Reply
post #22 of 37
Quote:
Originally Posted by Rookie1337 View Post
Damn you MS! So you mean to tell me that I'm not really using C/C++ when I'm in Visual Studio? OK that $200 book I bought 3 years ago has just become useless to me then. I'm really hating the US education system more and more these days. Why have us use the crap program when: A) we aren't learning real C/C++ and can't actually use it to make programs for the real world (can't distribute or sell them if using studio)?

Alright, so it's kdevelop, eclipse, and Bloodshed I should be focusing on then for "real" C/C++ right? Since the only textbooks my current school sells are Visual Studio specific can you guys recommend any that aren't and are possibly freely accessible on the web?

So much help from you guys I wish I could spam the rep button without feeling guilty.
You don't have to pay any licensing fees to M$ if you use Visual Studio. Also, you are learning C++, just with some inconsistencies from the majority of compilers.

Schools recommend VS because it's free and extremely easy to use (it can be used for rapid development). It just has the trade off having the code not be as compatible with other compilers as it could.
post #23 of 37
I've always used gcc, then for compiling my professor wanted us to use these options:
Code:
g++ -Wall -ansi -pedantic
so I just added an alias to .bashrc for g++g to run those options. As for IDE I just used vim with the color sampler pack.

Also gcc is just a package that contains binaries and libraries required for the compiler to compile code. There are other languages supported by gcc other than just c++. In arch there is even a package for gcc-fortran.
Edited by binormalkilla - 1/13/11 at 8:24pm
PWNzershreck
(15 items)
 
  
CPUMotherboardGraphicsRAM
4930K @ 4.6 GHz ASUS Rampage IV Black Edition MSI GTX 1080 FE Heatkiller Acetal 16 GB Corsair Vengeance 1600C9 
Hard DriveOptical DriveCoolingOS
2x Samsung 840 Pro  ASUS DVD-RW SATA Koolance 380i & 2x HW Labs 480GTX Arch Linux x86_64, Windows 7 x64 
MonitorKeyboardPowerCase
LG UC88-B Ultrawide, ASUS VS278Q Ducky Corsair AX1200i Caselabs STH10 
MouseMouse PadAudio
Logitech G500 Func 1030 ASUS Xonar Essence STX 
  hide details  
Reply
PWNzershreck
(15 items)
 
  
CPUMotherboardGraphicsRAM
4930K @ 4.6 GHz ASUS Rampage IV Black Edition MSI GTX 1080 FE Heatkiller Acetal 16 GB Corsair Vengeance 1600C9 
Hard DriveOptical DriveCoolingOS
2x Samsung 840 Pro  ASUS DVD-RW SATA Koolance 380i & 2x HW Labs 480GTX Arch Linux x86_64, Windows 7 x64 
MonitorKeyboardPowerCase
LG UC88-B Ultrawide, ASUS VS278Q Ducky Corsair AX1200i Caselabs STH10 
MouseMouse PadAudio
Logitech G500 Func 1030 ASUS Xonar Essence STX 
  hide details  
Reply
post #24 of 37
Quote:
Originally Posted by binormalkilla View Post
I've always used gcc, then for compiling my professor wanted us to use these options:
Code:
g++ -Wall -ansi -pedantic
Talk about pedantic.







    
CPUMotherboardGraphicsRAM
i7 920 D0 MSI X58 Pro-E GTX 560 Ti 448 3x2GB G.Skill DDR3-1333 9-9-9-24 
Hard DriveHard DriveOptical DriveOS
840 Pro Caviar Black LG BD-ROM Windows 8.1 Pro x64 
MonitorMonitorKeyboardPower
Dell U2713HM Dell U2311H Turbo-Trak (Google it :D) Corsair HX-520 
CaseMouseMouse PadAudio
CM690 Mionix Avior 7000 Everglide Titan AKG K 242 HD 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i7 920 D0 MSI X58 Pro-E GTX 560 Ti 448 3x2GB G.Skill DDR3-1333 9-9-9-24 
Hard DriveHard DriveOptical DriveOS
840 Pro Caviar Black LG BD-ROM Windows 8.1 Pro x64 
MonitorMonitorKeyboardPower
Dell U2713HM Dell U2311H Turbo-Trak (Google it :D) Corsair HX-520 
CaseMouseMouse PadAudio
CM690 Mionix Avior 7000 Everglide Titan AKG K 242 HD 
  hide details  
Reply
post #25 of 37
Quote:
Originally Posted by randomizer View Post
Talk about pedantic.







Oh you
PWNzershreck
(15 items)
 
  
CPUMotherboardGraphicsRAM
4930K @ 4.6 GHz ASUS Rampage IV Black Edition MSI GTX 1080 FE Heatkiller Acetal 16 GB Corsair Vengeance 1600C9 
Hard DriveOptical DriveCoolingOS
2x Samsung 840 Pro  ASUS DVD-RW SATA Koolance 380i & 2x HW Labs 480GTX Arch Linux x86_64, Windows 7 x64 
MonitorKeyboardPowerCase
LG UC88-B Ultrawide, ASUS VS278Q Ducky Corsair AX1200i Caselabs STH10 
MouseMouse PadAudio
Logitech G500 Func 1030 ASUS Xonar Essence STX 
  hide details  
Reply
PWNzershreck
(15 items)
 
  
CPUMotherboardGraphicsRAM
4930K @ 4.6 GHz ASUS Rampage IV Black Edition MSI GTX 1080 FE Heatkiller Acetal 16 GB Corsair Vengeance 1600C9 
Hard DriveOptical DriveCoolingOS
2x Samsung 840 Pro  ASUS DVD-RW SATA Koolance 380i & 2x HW Labs 480GTX Arch Linux x86_64, Windows 7 x64 
MonitorKeyboardPowerCase
LG UC88-B Ultrawide, ASUS VS278Q Ducky Corsair AX1200i Caselabs STH10 
MouseMouse PadAudio
Logitech G500 Func 1030 ASUS Xonar Essence STX 
  hide details  
Reply
post #26 of 37
That was bad, even for me.
    
CPUMotherboardGraphicsRAM
i7 920 D0 MSI X58 Pro-E GTX 560 Ti 448 3x2GB G.Skill DDR3-1333 9-9-9-24 
Hard DriveHard DriveOptical DriveOS
840 Pro Caviar Black LG BD-ROM Windows 8.1 Pro x64 
MonitorMonitorKeyboardPower
Dell U2713HM Dell U2311H Turbo-Trak (Google it :D) Corsair HX-520 
CaseMouseMouse PadAudio
CM690 Mionix Avior 7000 Everglide Titan AKG K 242 HD 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
i7 920 D0 MSI X58 Pro-E GTX 560 Ti 448 3x2GB G.Skill DDR3-1333 9-9-9-24 
Hard DriveHard DriveOptical DriveOS
840 Pro Caviar Black LG BD-ROM Windows 8.1 Pro x64 
MonitorMonitorKeyboardPower
Dell U2713HM Dell U2311H Turbo-Trak (Google it :D) Corsair HX-520 
CaseMouseMouse PadAudio
CM690 Mionix Avior 7000 Everglide Titan AKG K 242 HD 
  hide details  
Reply
post #27 of 37
Thread Starter 
Gah, programming is one part of computers that makes my head hurt. I think I confused everyone earlier because I really don't know anything (and I hope that was evidently clear).

So to summarize; In Linux I should look to use kdevelop or vim? Then to ensure that I can transfer code without problems I should use Bloodshed in windows?

And are there things I should be aware of that are specific to Visual Studio such as <iostream> and such? I have absolutely no idea why bloodshed didn't work when I put code from VS in it so forgive me if this is a dumb question.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #28 of 37
Quote:
Originally Posted by Rookie1337 View Post
So to summarize; In Linux I should look to use kdevelop or vim? Then to ensure that I can transfer code without problems I should use Bloodshed in windows?

And are there things I should be aware of that are specific to Visual Studio such as <iostream> and such? I have absolutely no idea why bloodshed didn't work when I put code from VS in it so forgive me if this is a dumb question.
There are TONS of things you can develop in on Linux. Remember, Linux is basically the programmer's OS. If you're looking for a full IDE there are: Eclipse, Netbeans, Code::Blocks, etc... If you're looking for simply a text editor there are limitless options: Nano, Vi(m), Emacs, Gedit, Mousepad, etc... The main difference between the text editor and the IDE is that you'll have to manage files and compile manually if you choose not to let an IDE do everything for you.

<iostream> is not specific to Visual Studio. IOStream is the input/output library for C++. There are however random quirks in the header files that come with Visual Studio. That means that some of the functions that you use may be defined differently then what the rest of the world uses, outside of Visual Studio. I have no idea why Microsoft does this. Basically every other IDE will follow standards and will be more or less "copy and paste"-able into each other.

Also remember that using Linux means that your code might not necessarily work on Windows. You could be using Linux libraries.
post #29 of 37
Solaris Studio (available for Linux too, and under a freeware license) is meant to be a pretty good development environment for C/C++ and Fortran, which consists of IDE/optimizer/compiler. I usually use vim and gcc/clang myself though.
Edited by ch_123 - 1/15/11 at 10:44am
Daedalus
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 955 Gigabyte MA78GM-UD2H Gainward 9600GT GS 4GB OCZ Platinum PC2-6400 
Hard DriveOSMonitorKeyboard
250GB Samsung P120S, 1TB Samsung F1 Window 7 64bit/Arch Linux Samsung 204B 20"/Dell 1701FP IBM Model F and others 
PowerCaseMouse
Corsair HX620 Lian-Li V350B Steelseries Ikari Laser 
  hide details  
Reply
Daedalus
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II X4 955 Gigabyte MA78GM-UD2H Gainward 9600GT GS 4GB OCZ Platinum PC2-6400 
Hard DriveOSMonitorKeyboard
250GB Samsung P120S, 1TB Samsung F1 Window 7 64bit/Arch Linux Samsung 204B 20"/Dell 1701FP IBM Model F and others 
PowerCaseMouse
Corsair HX620 Lian-Li V350B Steelseries Ikari Laser 
  hide details  
Reply
post #30 of 37
gcc isn't really a compiler. It's a front-end to the compiler (cc) and the linker (ld).
Akiyama Mio
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6420 @ stock, 0.98v Asus P5N-E SLI Gainward GTX 460 1GB @ 800/1600/1900 2x2GB Kingston @ 800MHz 5-5-5-15 2T 
Hard DriveOptical DriveOSMonitor
WD 250GB, 320GB SATA/3, 16MB Cache, Seagate 1TB LG GSA-H62N 18x SATA Ubuntu 9.10 x86 & Win7 x86 Asus VW222U 
KeyboardPowerCase
Logitech Classic Corsair 650HX NZXT Apollo Black 
  hide details  
Reply
Akiyama Mio
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6420 @ stock, 0.98v Asus P5N-E SLI Gainward GTX 460 1GB @ 800/1600/1900 2x2GB Kingston @ 800MHz 5-5-5-15 2T 
Hard DriveOptical DriveOSMonitor
WD 250GB, 320GB SATA/3, 16MB Cache, Seagate 1TB LG GSA-H62N 18x SATA Ubuntu 9.10 x86 & Win7 x86 Asus VW222U 
KeyboardPowerCase
Logitech Classic Corsair 650HX NZXT Apollo Black 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › What do you guys recommend for a C/C++ etc. Compiler on Linux?