

And now, for the shortcut: You can build and run a project using a single command: Choose Build→Build and Run. Press the Enter key to close the command prompt window. You see the terminal window appear, listing the program’s output, plus some superfluous text. To run the current project, choose Build→Run from the menu. If the error includes a line number, it is likely that this is a problem with your code.

Go to Project->Build options… ->Linker settings (tab) and add the required library or libraries. Install it and most probably your problem will be solved. Best way is to uninstall the current codeblocks and download the version with compiler included. It is generally due to non availability of compiler or Codeblocks is not properly configured to use the compiler.

Why are my Codeblocks not building any code?.How do I download Codeblocks on Windows 10?.What do you do when Code::Blocks stop working?.How do you stop compilations in Code::Blocks?.
