Confused as to how to run C++

OK… Now I’m confused. :confused:
According to what I’ve heard, the GCC and GCC-C++ packages are all I need to run C++ and develop apps on Linux with it. OK, I’ve installed them both, but how do I run it? There’s no option in the menus for it.
Can anyone help me in this matter?

Hi
Those are the progams to compile your application. Your wanting an IDE
to code in? Maybe installing codeblocks, else use your favorite text
editor and code away, then run the commands to compile.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 3 days 3:01, 3 users, load average: 0.12, 0.15, 0.48
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

According to what I’ve heard, the GCC and GCC-C++ packages are all I need to run C++ and develop apps on Linux wit
Hi, I would suggest you to try NetBeans Welcome to NetBeans, it is in my opinion a nice modern IDE (Integrated Development Environment) mostly meant for java programming, but allows you to do programming also in: C++,PHP,Ruby.

To compile:

c++ 'your-source-code-file' -o 'output-program-name'

To run:

./'output-program-name'

GCC is a compiler, not a code developing tool :wink: You need an IDE for that, or use a text editor and manually write the code. Then use gcc to compile it

Many thanks for all the help!
I might try NetBeans, but I might try coding in a text-editor… Haven’t decided yet. NetBeans sounds easier, though.

The full blown development IDE’s give’s you a lot of things for free and are in my opinion quite usefull if u are working on big projekts or just have started programing.

But it is usefull(my opinion ) to have knowledge on how to compile using only the compiler and how to compile using for an example an makefile. So my tip is to you atleast try it out(maybe not right now, but in the future)

+1 for codeblocks.

Arif
swat