Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How Exactly do I Install C and C++?

  1. #1
    Join Date
    Apr 2013
    Beans
    13

    How Exactly do I Install C and C++?

    I'm obviously not smart enough to figure this out on my own, so I've come to the forums for help with this xD

    I need some help installing C and C++. I searched google, but I didn't come up with anything that made sense to me. I'm still new to Linux, so I don't know what most of the stuff that I found means.

    So could someone post a newb-friendly guide for me? I'm using Xubuntu 12.04.
    Last edited by VicariousToast; April 28th, 2013 at 02:23 AM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How Exactly do I Install C and C++?

    Code:
    sudo apt-get install build-essential
    should take care of it.

  3. #3
    Join Date
    Apr 2013
    Beans
    13

    Re: How Exactly do I Install C and C++?

    I pasted the code into the terminal and ran it, but I can't find c or c++ with the Application Finder or Catfish. Where should the files be located?

  4. #4
    Join Date
    Apr 2012
    Beans
    4,573

    Re: How Exactly do I Install C and C++?

    What are you trying to do exactly?

    C and C++ are languages (not applications) the build-essential package installs all the command line tools you should need to compile and run C/C++ code - but if you are expecting some kind of complete development environment like Microsoft's Visual Studio then you will need to install an IDE separately.

  5. #5
    Join Date
    Apr 2013
    Beans
    13

    Re: How Exactly do I Install C and C++?

    Ah, I see now. I was under the assumption that Linux used some other method that I didn't know about, instead an IDE. There was no mention of IDEs in any of the guides I found(which were specifically for Linux), and I never thought to search for IDEs(I'm having one of those days where I just can't think straight.).

  6. #6
    Join Date
    Apr 2012
    Beans
    4,573

    Re: How Exactly do I Install C and C++?

    Well you don't need an IDE, in fact if you're just getting started there's lots to recommend just using a regular text editor and command line tools - it's often easier to get a feel for what's going on under the hood that way

  7. #7
    Join Date
    Jan 2011
    Beans
    193

    Re: How Exactly do I Install C and C++?

    Then the next question is do you want just build a program or a windows/gui program.

  8. #8
    Join Date
    Mar 2006
    Beans
    393

    Re: How Exactly do I Install C and C++?

    Quote Originally Posted by schragge View Post
    Code:
    sudo apt-get install build-essential
    should take care of it.
    Also:
    Code:
    sudo apt-get install manpages-dev
    These are the manual pages for the development environemnt.

    Quote Originally Posted by VicariousToast View Post
    I pasted the code into the terminal and ran it, but I can't find c or c++ with the Application Finder or Catfish. Where should the files be located?
    Try:
    Code:
    man gcc
    Just my 0.00000002 million dollars worth,
    Shawn

    Programming is as much about organization and communication as it is about coding.

  9. #9
    Join Date
    Apr 2013
    Location
    43.49°N 7.46°E
    Beans
    117
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How Exactly do I Install C and C++?

    if you wish an IDE for C++, you might try Code::Blocks.

  10. #10
    Join Date
    Apr 2013
    Beans
    13

    Re: How Exactly do I Install C and C++?

    Quote Originally Posted by steeldriver View Post
    Well you don't need an IDE, in fact if you're just getting started there's lots to recommend just using a regular text editor and command line tools - it's often easier to get a feel for what's going on under the hood that way
    So how does that work? Is there any particular place you have to put the text file? And how is the command line used?

    Quote Originally Posted by kuifje09 View Post
    Then the next question is do you want just build a program or a windows/gui program.
    I don't really know. I started learning C# on one of the other computers in my house, and I think it's fun. So right now I'm not looking to do anything in particular, I'm just trying to learn the basics. Later on when I get good at it I'm going to start designing games.

    Quote Originally Posted by shawnhcorey View Post
    Also:
    Code:
    sudo apt-get install manpages-dev
    These are the manual pages for the development environemnt.



    Try:
    Code:
    man gcc
    Thanks

    Quote Originally Posted by alan9800 View Post
    if you wish an IDE for C++, you might try Code::Blocks.
    I'll check it out, thanks.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •