I installed code blocks, selected a GNU/gcc compiler, and created a new empty project and file. When I try to execute a basic Hello World program, no console window pops up and no errors are generated.
|
Actually Codeblocks has sometime a problem like the one you mention. what I do is click on New File and select Empty File or just press Shift+Ctrl+N and then SAVE the file with some name .cpp. Like example.cpp. THEN you start writing the code for it. When finished press F9 for it to Build and Run. IF by any chance you do not have g++ in your Ubuntu (In my ubuntu it does not come by default) just install it by |
||||
|
|
|
I had a similar issue when g++ was not installed. Codeblocks actually uses g++, not gcc. Try installing the "g++" package. |
|||
|
|
|
You need to install the 'build-essential' package. Open a terminal and type: |
|||
|
|