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.
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:
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))
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:
Is this binary usable in openSUSE 12.2?
If so, how should I install it?
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.
> 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?
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.
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 ;).
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
>
> 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.
Wildly updating things from many repos is dangerous, yes, specially if
you do “dups”
You can add that repo, and give it a lower priority (higher number).
Then you just download that program and perhaps a few things, so that
the changes are controlled. The update software remembers your choice
and will only offer updates of those packages from that repo, the rest
will remain with their repos. This is because update does not
automatically change repo (vendor).
Zypper dup does not respect vendor change, so it would be dangerous.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))