Topic: C++ compiler for #! please?

Hello, I am basically new to crunchbang. I have moved from windows to ubuntu and now to #!..
Given the examples of my past Operating System experience, you should know that I have learned basically only 'graphical interfaces'. It seems the terminator is the main way of getting things done in #!, while in my past operating systems you could simply click on an icon...

I am very interested in crunchbang and would like to keep using it, but in order to do so I am going to need to be able to program. I need something that can turn C++ source code and turn it into a program that is executable... Simply put, I want something like Code::Blocks.. Please help me out?

Re: C++ compiler for #! please?

g++

NOTICE: alloc: /dev/null: filesystem full

Re: C++ compiler for #! please?

Yes, I have heard about g++ and gcc..

The problem I am having right now is installing a compiler like g++ or gcc and then running it.
How do you do it?

Re: C++ compiler for #! please?

http://www.arachnoid.com/cpptutor/setup_unix.html

NOTICE: alloc: /dev/null: filesystem full

Re: C++ compiler for #! please?

You need to install the package 'build-essential'. You can do that with the gui package manager (synaptic) or via terminal with

sudo apt-get install build-essential

For coding i suggest 'geany'. It comes with a built-in compile/build feature. You install it the same way as 'build-essential'.

- closed account - gone to better places -

Re: C++ compiler for #! please?

I believe it is already installed, I typed that in on the terminal and got:

r3d@cruchbang:~$ sudo apt-get install build-essential
[sudo] password for r3d:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

It is installed then right? and how would I install 'geany'?.. Im a noob with the terminal XD tell me what to type please

Re: C++ compiler for #! please?

Ive heard lots of good stuf about "Clang" http://clang.llvm.org/

Well, you gotta live no matter what happens.  -Dallas (John Ford's Stagecoach 1939 Public Domain)

Re: C++ compiler for #! please?

sudo apt-get install geany
Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: C++ compiler for #! please?

basic compiling with g++ (and gcc) is

g++ -Wall -o outputfile inputfile.c

where -Wall checks for more errors
         -o defines the output file name
        and then the input file(s) at the end
I'm sure that google will supply some better tutorials tho

On the subject of code::blocks, there are some linux IDEs (eclipse and netbeans spring to mind can't really recommend either tho as i've never used them), but its more common to use a stand alone text editor, so maybe you should try 'the linux way'(tm)?, geany's quite nice I use it myself not as many features as an IDE but enough in most cases.

PS anonymous, its

sudo apt-get install geany


tongue

- - - - - - - - Wiki Pages - - - - - - -
#! install guide           *autostart programs, modify the menu & keybindings
configuring Conky       *installing scripts

Re: C++ compiler for #! please?

^ Thanks. I must remember to actually wake up before posting.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.