Newbie,Linux and C++

Hi all,

I recently installed Suse Linux 10.0 (my first “other than Windows” OS).
I want to experimentate a little bit with C++, installed Boost and GNU with YaST, but I cant see the program’s anywhere…

Is this something I only can do with the non-GUI part of linux, I mean with commands :stuck_out_tongue:

Pls help me further, cheers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, but before you get too carried away is there a reason you are
starting with 10.0? It’s really old and 11.3 is near its release (11.2
has been good as well).

Compiling in any distro of Linux can be done fairly easily if you have the
gcc (default for most systems) compiler installed.

gcc file.c

Good luck.

On 07/07/2010 09:16 AM, Waxterz wrote:
>
> Hi all,
>
> I recently installed Suse Linux 10.0 (my first “other than Windows”
> OS).
> I want to experimentate a little bit with C++, installed Boost and GNU
> with YaST, but I cant see the program’s anywhere…
>
> Is this something I only can do with the non-GUI part of linux, I mean
> with commands :stuck_out_tongue:
>
> Pls help me further, cheers
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMNJ7+AAoJEF+XTK08PnB5uWEP/0M8SLqVnPrQpHFDG6zycnKD
/NXg1ALX/KVedxCs3i1bAm344uOr1reOCC9/FIvDz6IyISora8a8brqdnYYvot07
bGb8XSXLchvPmrYaKo2EhCUXaQzmvhF9Ys1WbDIa3bcjviEByMpEKFUPr/ZS1Ltk
rLNSkINKABZGoloOn55TsCQs4cL/2SRrIfStdP9d3IoHPsMlKIco0+lgOQ2Uaemt
lck/5UVWq0MtJyzjY4S+QAiD8ddlXME6uvM9cNZaTRaJFdtk+U3YNUqXe8669Z94
R8mBeelbo5WZA1FeCZV4Sx698i4jHRsxTn66uwSXHPz9W9svQasE8jhmGFuqjH5T
KSJCSqQCu8B+x5X4CPNZ7kBwHGtYVwn76Sg6Zf55Jm03OC71xOaG00yZ8msZiUti
gXPuYtfjAqtkUC1/IxeUEpUQZ1xqj7vdD6AhUYWMKSc4lzPZVqOLJ3lXsVdgx7Fh
C2VZPv0q/I1yw2KUFbWcuTVxN/h1hCyWAePm0F80s8Sa4GnIWjBV8ZoUjs2hnYIc
nSclbwvGfgoECKxV/18OOZ7H7t0a4QkVfx+kfW9lbfI/8PVTaN5neqDof0JY/ZH3
Ypjkxqll2+FrAj/jb7MPd24WSWEdSdEQNSL8zCuWwAbfbUoq2i5uD/e0TGIdYJwA
QvktgkAidXAdsCIIzqPa
=lysp
-----END PGP SIGNATURE-----

but I cant see the program’s anywhere…

Hi, and welcome to the forums.

You are right: There is no icon for gcc or g++ in the desktop menu. I always start them from the command line. However, there are a couple of good integrated development packages around. Maybe your best start would be to browse the software repositories with yast to see what’s in the standard distro. Others will visit this thread and point out their favorites. Look out …

As for your version of SUSE: you say 10.0. Can you please confirm that this is openSUSE 10.0 and not SLES or SLED? Could make a difference.

Hi,

‘gcc file.c’ would be used to compile a C program rather than a C++
program.

If you know some C++ already then ‘g++ file.cpp’ (or similar) would be
fine; however, if you don’t have any experience with C++, you might be
better off getting a good book on C++ (which may have instructions on
compiling in GNU/Linux).

Regards,
Barry.

Waxterz wrote:

> Hi all,
>
> I recently installed Suse Linux 10.0 (my first “other than Windows”
> OS).

Like others have already suggested, you really ought to go for 11.2 -
it’s freely available and a lot more current than 10.0.

> I want to experimentate a little bit with C++, installed Boost and GNU
> with YaST, but I cant see the program’s anywhere…
>
> Is this something I only can do with the non-GUI part of linux, I mean
> with commands :stuck_out_tongue:

Well, yes and no. You can run the compiler from the shell, but there
are also IDEs such as Eclipse. You will most likely end up with the
command line anyway (for writing make files), so that’s where I’d
start.


Per Jessen, Zürich (20.1°C)
http://en.opensuse.org/User:Pjessen

Code::Blocks is a great tool, have not seen it in suse yet. Used it in buntu and it worked well.

avenuemax wrote:

>
> Code::Blocks is a great tool, have not seen it in suse yet.

http://software.opensuse.org/search?q=codeblocks


Per Jessen, Zürich (22.8°C)
http://en.opensuse.org/User:Pjessen

Thanks Per! I was searching coe::blocks and it didnt return anything.

please read code::blocks, I get an error with 1 click install though.

avenuemax wrote:

>
> Thanks Per! I was searching coe::blocks and it didnt return anything.
>

I was just being lazy:

http://www.google.com/search?q=code%3A%3Ablocks+opensuse


Per Jessen, Zürich (24.1°C)
http://en.opensuse.org/User:Pjessen

It wont install, dependency error.

avenuemax wrote:

>
> It wont install, dependency error.
>

My crystalball is being repaired - if you’d like some help, you’ll have
to be little more verbose.


Per Jessen, Zürich (25.2°C)
http://en.opensuse.org/User:Pjessen

Nothing provides libc.sox86_64(glibc_2.11)(64 bit) needed by libcodeblocks…

avenuemax wrote:

>
> Nothing provides libc.sox86_64(glibc_2.11)(64 bit) needed by
> libcodeblocks…
>

I guess you’re still on 10.0 - I’m surprised you even managed to find a
codeblocks build for something that old. The OBS doesn’t seem to have
one.

This might not help you much, but I’ve just installed codeblocks on my
11.3RC1 system, no problems. I had to also install libcodeblocks0 and
wxgtk.


Per Jessen, Zürich (27.2°C)
http://en.opensuse.org/User:Pjessen

I am on 11.2, tried the other two packages that you mentioned from 11.3 repo but still doesnt work.

Good time to hunt the village witch!

avenuemax wrote:

>
> I am on 11.2, tried the other two packages that you mentioned from
> 11.3 repo but still doesnt work.

Okay. I’ll try to repeat the process on 11.2. download.o.s seems very
slow right now, so it might have to wait till later.


Per Jessen, Zürich (27.9°C)
http://en.opensuse.org/User:Pjessen

Per Jessen wrote:

> avenuemax wrote:
>
>>
>> I am on 11.2, tried the other two packages that you mentioned from
>> 11.3 repo but still doesnt work.
>
> Okay. I’ll try to repeat the process on 11.2. download.o.s seems
> very slow right now, so it might have to wait till later.

zypper in wxgtk

Loading repository data…
Reading installed packages…
Resolving package dependencies…

The following NEW packages are going to be installed:
libmspack0 libSDL-1_2-0 wxGTK

3 new packages to install.
Overall download size: 3.9 MiB. After the operation, additional 13.2 MiB will be used.
Continue? [y/n/?] (y):
Retrieving package libmspack0-0.0.20060920alpha-69.2.i586 (1/3), 44.0 KiB (93.0 KiB unpacked)
Installing: libmspack0-0.0.20060920alpha-69.2 [done]
Retrieving package libSDL-1_2-0-1.2.13-112.3.i586 (2/3), 187.0 KiB (483…0 KiB unpacked)
Installing: libSDL-1_2-0-1.2.13-112.3 [done]
Retrieving package wxGTK-2.8.10.1-5.6.i586 (3/3), 3.7 MiB (12.7 MiB unpacked)
Installing: wxGTK-2.8.10.1-5.6 [done]

Then I downloaded codeblocks-r6384-1.1.i586.rpm and
libcodeblocks0-r6384-1.1.i586.rpm and installed them:

rpm --install libcodeblocks0-r6384-1.1.i586.rpm codeblocks-r6384-1.1.i586.rpm

warning: libcodeblocks0-r6384-1.1.i586.rpm: Header V3 DSA signature: NOKEY, key ID 32567f38

So, works for me.


Per Jessen, Zürich (28.2°C)
http://en.opensuse.org/User:Pjessen

Right, take your time.

Well you got i586 packages I am looking for x86_64. Will contact build team and check.