First, you press the compile button. Then, you press the build button. Then, you press the execute/run button. (Press the three buttons from left in the order they appear )
I’ve used Codeblocks once and I hated it… Now I use Geany and it all works much better…
However, it seems to me you might have a linkage problem with your IDE configurations…
I suggest you the following thing for starters. Let’s compile a simple program via command-line usage:
Write a trivial “Hello World” program in a text editor, like gedit and save it as hello.cpp on Desktop or so…
Then fire up the Terminal (shortcut Ctrl-Alt-T in Ubuntu) change your current directory to desktop (usually type “cd Desktop” only) and compile the program directly on the terminal:
g++ -o hello hello.cpp -lm
(this should work without any errors or warnings)
And then do simply:
./hello
to execute it… If this works without any errors, we can fix your problem easily…
Otherwise, something might be wrong or misconfigured with your compiler…
Thanks guys for you kind information… I was missing g++ in my system … Now i have installed it and my all compilers are working fine…
Both Code::Block and Geany …