Greetings, internet
I am quite new to Linux, and am looking to install a c++ compiler. I run 11.4, and was told to look in the Software Manager for easy installation. I have no repositories installed, as the repositories in the Application sticky only applied to Suse installations through 11.3.
I found the package “gcc45-c++” (Version Number 4.5.1_20…208-9.8) when I searched the Software Manager. I proceeded to install it, and had no problems, but when I looked in “applications”, the compiler was not there. I’m aware that I may be revealing some great ignorance here, so I’ll ask, should gcc appear? If not, how do I execute the program?
Thank you in advance
GCC is a command-based compiler. There are GUI frontends for it, but otherwise you will run GCC from the terminal.
Ah, alright, that makes sense. How would I go about doing that, then?
See the man pages for gcc and g++.
To Add the C++ development environment I would do the following:
Open YaST / Software / Software Management - Select the View Button on the top left and pick Patterns. Now, you will see several Patterns listed and you want to select:
Development
[X] Base Development
[X] C/C++ Development
Then Press the Accept button on the bottom right and allow these applications to install. There may be other patterns there you also would like to add. This will install many files required for each development you wish to use.
Thank You,
I did as you instructed, and DDD has appeared in my Applications. Is that what I’m looking for, or should I be in the terminal, as chief sealth suggests? I also looked in the manual for gcc and g++. The manual says that there is no g++ entry, and the gcc entry just gives me options, nothing related to starting the compiler to write the code.
I think I need to read up more on the gcc compiler. Thank you both for your help!
gcc-45-c++ is a command compiler, it has not graphical interface. I use gcc with Kwrite.
If you want something visual try with visual C++ but I do not know if it is available for openSUSE, maybe with WINE you can run it as VB.
What kind of applications do you plan to develop? There are several graphical IDEs available, but which would be best for you depends on your objective.
On 2011-04-19 05:06, MemeWilder wrote:
> and the gcc entry just gives me
> options, nothing related to starting the compiler to write the code.
Man pages are not easy manuals to read, they are more like reminders for
things you already know. It does say what you want, but not in simple terms.
I think there are IDEs that will call the compiler for you. Try kdevelop.
I don’t know if there is a howto or book that guides people on how to make
programs in linux.
An old one that comes with the distro:
/usr/share/doc/Books/lpg-0.4pdf: The Linux Programmer’s Guide
But it is not what you need now.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
Carlos E. R. wrote:
> On 2011-04-19 05:06, MemeWilder wrote:
>> and the gcc entry just gives me
>> options, nothing related to starting the compiler to write the code.
That’s be what the manuals are for:
http://gcc.gnu.org/onlinedocs/
On 2011-04-19 15:28, Dave Howorth wrote:
> Carlos E. R. wrote:
>> On 2011-04-19 05:06, MemeWilder wrote:
>>> and the gcc entry just gives me
>>> options, nothing related to starting the compiler to write the code.
>
> That’s be what the manuals are for:
> http://gcc.gnu.org/onlinedocs/
Isn’t that the same as info gcc? Horrible for learning.
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
Carlos E. R. wrote:
> On 2011-04-19 15:28, Dave Howorth wrote:
>> Carlos E. R. wrote:
>>> On 2011-04-19 05:06, MemeWilder wrote:
>>>> and the gcc entry just gives me
>>>> options, nothing related to starting the compiler to write the code.
>> That’s be what the manuals are for:
>> http://gcc.gnu.org/onlinedocs/
>
> Isn’t that the same as info gcc? Horrible for learning.
I’ve no idea. I never use info on religious grounds
So if you’re looking for tutorials then google gcc tutorials throws up
http://pages.cs.wisc.edu/~beechung/ref/gcc-intro.html
http://www.network-theory.co.uk/gcc/intro/
http://www.riscos.info/index.php/GCC_tutorial
and lots of others.
I’m really more looking to learn the language than to make any practical applications at this point. My preference, then, would be something as simple as possible.
Oh my, I missed everything on the second page when I replied. An update: I’ve written, compiled, and executed the “Hello World!” program, and the compiler seems to work fine.
Thank you all for your help, I could not have done it without you!
may i recommend you an excellent book ???
it’s Programming in C (Third Edition) by Stephen G. Kochan
amazon.com Programming-3rd-Stephen-G-Kochan
I thought the OP was trying to learn C++ not C.
So I recommend this book for C++ as an introduction
Stanley B. Lippman: C++ Primer