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

Thread: Packages to do programming in C++

  1. #1

    Default Packages to do programming in C++

    Hello guys. I installed openSUSE as my sole OS in my laptop less than a week ago and was wondering, what packages should I install to do some programming in C++?. This year one of my goals is to learn to program in C++ and I inscribed in a course so I'll be needing the software to do it.

    Thank you for your help.

  2. #2
    Join Date
    Mar 2009
    Location
    United States
    Posts
    612

    Default Re: Packages to do programming in C++

    Hello and welcome! If you use the yast software manager find the section called patterns. There are two patterns to install, Base Development and C/C++ Development. After that fire up any text editor and start coding. You will need to learn how to use GCC to compile the code you write.

    If you want to program a GUI interface you might look into installing the package qt-creator as well.

    Here is an example on how to use gcc from the command line on a simple C++ program:
    Code:
    /usr/bin/g++ -o hello_world hello_world.cpp

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Packages to do programming in C++

    On 2013-01-07 23:46, linmach89 wrote:
    >
    > Hello guys. I installed openSUSE as my sole OS in my laptop less than a
    > week ago and was wondering, what packages should I install to do some
    > programming in C++?. This year one of my goals is to learn to program in
    > C++ and I inscribed in a course so I'll be needing the software to do
    > it.


    Somebody asked about C programming less than a week ago, search for it.
    Specially he asked about IDEs.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  4. #4

    Default Re: Packages to do programming in C++

    Quote Originally Posted by nightwishfan View Post
    Hello and welcome! If you use the yast software manager find the section called patterns. There are two patterns to install, Base Development and C/C++ Development. After that fire up any text editor and start coding. You will need to learn how to use GCC to compile the code you write.

    If you want to program a GUI interface you might look into installing the package qt-creator as well.

    Here is an example on how to use gcc from the command line on a simple C++ program:
    Code:
    /usr/bin/g++ -o hello_world hello_world.cpp
    Okay, I downloaded everything you said and all went fine. About the command line, I am really committed to learning it, but I fell, for now, that I prefer an IDE. I've heard some good comments about Code::Blocks (I used to use Dev-C++ when I was a windows user and did some basic programming) but I don't see it anywhere in my repos (packman + the defaults: the set of repos advised in the documentation to beginners). I went to Code::Blocks' web page and looked for binaries in Linux (here: Download binary). There is one for openSUSE by the name codeblocks-12.11.suse122-19.1.i586.rpm, and here come my questions:

    1. Is this binary usable in openSUSE 12.2?
    2. If so, how should I install it?
    3. Since it is not on the repos, in case I want to remove it, how would I do it?

    I know it may sound a little dumb () but I'm just learning how everything works here. Thank you for your help.

  5. #5
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Packages to do programming in C++

    Quote Originally Posted by linmach89 View Post
    Okay, I downloaded everything you said and all went fine. About the command line, I am really committed to learning it, but I fell, for now, that I prefer an IDE. I've heard some good comments about Code::Blocks (I used to use Dev-C++ when I was a windows user and did some basic programming) but I don't see it anywhere in my repos (packman + the defaults: the set of repos advised in the documentation to beginners). I went to Code::Blocks' web page and looked for binaries in Linux (here: Download binary). There is one for openSUSE by the name codeblocks-12.11.suse122-19.1.i586.rpm, and here come my questions:
    Code::Blocks is available on the devel:tools:ide repository as codeblocks.

    Code:
    http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_12.2/
    To install, open a terminal and as root enter

    Code:
    zypper ar http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_12.2/ IDE
    zypper ref -r IDE
    zypper in codeblocks

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Packages to do programming in C++

    On 2013-01-08 02:56, linmach89 wrote:

    > Okay, I downloaded everything you said and all went fine. About the
    > command line, I am really committed to learning it, but I fell, for now,
    > that I prefer an IDE.


    I said that we talked about this less than a week ago. Did you not search?

    View this
    thread:


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))

  7. #7

    Default Re: Packages to do programming in C++

    Quote Originally Posted by chief_sealth View Post
    Code::Blocks is available on the devel:tools:ide repository as codeblocks.

    Code:
    http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_12.2/
    To install, open a terminal and as root enter

    Code:
    zypper ar http://download.opensuse.org/repositories/devel:/tools:/ide/openSUSE_12.2/ IDE
    zypper ref -r IDE
    zypper in codeblocks
    But adding that repository to my list isn't going to cause any trouble, is it? I've read that adding repos is not a as trivial as it sounds (that's why I only have the recommended set), because repositories may be in conflict with each other and this can even cause system failure. Maybe I'm just a little paranoid while I get some experience, but you'll understand.

  8. #8
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Packages to do programming in C++

    Quote Originally Posted by linmach89 View Post
    But adding that repository to my list isn't going to cause any trouble, is it? I've read that adding repos is not a as trivial as it sounds (that's why I only have the recommended set), because repositories may be in conflict with each other and this can even cause system failure. Maybe I'm just a little paranoid while I get some experience, but you'll understand.
    It can cause problems if you aren't careful. I do well with multiple repositories, but to remove it after installing Code::Blocks, enter

    Code:
    zypper rr IDE
    or to disable it,

    Code:
    zypper mr -d IDE

  9. #9

    Default Re: Packages to do programming in C++

    Quote Originally Posted by robin_listas View Post
    On 2013-01-08 02:56, linmach89 wrote:

    > Okay, I downloaded everything you said and all went fine. About the
    > command line, I am really committed to learning it, but I fell, for now,
    > that I prefer an IDE.


    I said that we talked about this less than a week ago. Did you not search?

    View this
    thread:


    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith))
    I'm sorry, I was doing a lot of things and I missed your post. Thanks for the link, I think I'll use geany, which is on the official repo so I have one less thing to worry about .

  10. #10
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Packages to do programming in C++

    Quote Originally Posted by linmach89 View Post
    But adding that repository to my list isn't going to cause any trouble, is it? I've read that adding repos is not a as trivial as it sounds (that's why I only have the recommended set), because repositories may be in conflict with each other and this can even cause system failure. Maybe I'm just a little paranoid while I get some experience, but you'll understand.
    You will be safe as long as:-
    ==>Use Correction version of repo.Example:- Big No to 11.4 repo 12.2
    ==>No zypper dup when you use non standard repos
    ==>Don't use "switch installed packages.. to the versions in this repository" with non standard repos

    If you are not comfortable with other repos you can feel free to download the rpms(base as well requires) from software.opensuse.org and install them
    Try Geany(simple and light weight IDE) . It is present in default repos. Install gc++ etc to enable c,c++ compiler support
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

Page 1 of 2 12 LastLast

Posting Permissions

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