Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

C/C++ which compiler?


  • Please log in to reply
8 replies to this topic

#1 defurman

defurman

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales
  • Local time:12:37 PM

Posted 24 February 2011 - 11:58 AM

I am running Ubuntu and intend to start a course learning C/C++. But i am confused as to which compiler i should use. My friends have suggested the likes of g++, gcc and even CodeBlocks. Would appreciate any advice on this subject. Thanks

BC AdBot (Login to Remove)

 


#2 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:12:37 PM

Posted 24 February 2011 - 12:17 PM

Which ever one your class instructor recommends.

#3 Romeo29

Romeo29

    Learning To Bleep


  • BC Advisor
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:07:37 AM

Posted 24 February 2011 - 06:22 PM

All you mentioned gcc, g++ and codeblocks use the same compiler GNU Compiler :)

CodeBlocks is great as it comes with code edtor and other things.

You can just install g++ using sudo apt-get install g++
CodeBlocks can be installed from Ubuntu Software Center.

I do not think that you would find anything better than GNU Compiler on Ubuntu.

#4 defurman

defurman
  • Topic Starter

  • Members
  • 125 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Wales
  • Local time:12:37 PM

Posted 25 February 2011 - 03:50 AM

GCC is a C compiler and G++ is a C++ compiler and both work from the command-line and CodeBlocks is a graphical user interface "GUI". Shall have to start swotting up on my maths or isn't it very important?

#5 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:12:37 PM

Posted 25 February 2011 - 09:23 AM

What is GCC =

The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these languages (libstdc++, libgcj,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, free in the sense that it respects the user's freedom.



#6 dkaczynski

dkaczynski

  • Members
  • 6 posts
  • OFFLINE
  •  
  • Local time:06:37 AM

Posted 05 March 2011 - 11:06 PM

JGrasp seems to be popular for academic purposes. It uses the lower-level compilers that you had already mentioned, but it's free of charge and provides a very nice GUI. My favorite feature may be the auto-tabbing button, which automatically sets indentation for blocks of code.

#7 1112PM

1112PM

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:12:37 PM

Posted 09 March 2011 - 09:25 AM

Codeblocks is an IDE, not a compiler. You will need to get a compiler that works with Linux specifically, a simple Google will bring this out.

#8 Guest_trizicus_*

Guest_trizicus_*

  • Guests
  • OFFLINE
  •  

Posted 27 March 2011 - 11:15 PM

CodeBlocks is an IDE; not a compiler.

GCC is the C compiler
G++ is the C++ compiler

I recommend using both of those (as a matter of fact I think those are the only compilers available for Linux considering that is what all C/C++ software in Linux uses)

#9 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD

Posted 28 March 2011 - 07:21 PM

I should add that both of these are included in almost every version of Linux that I can think of.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users