How to install code blocks in Linux mint 17.1 (KDE)

I have already installed codeblocks in my linux mint 17.1 (KDE) using this command line

sudo apt-get install codeblocks

but when i tried to compile and run c program on codeblocks it shows me this error

/ home / redwan / Programmin / C Program / hello.c | 1 | fatal error: stdio.h: No such file or directory | || === Build error: 1 error (s), 0 warning (s) (0 minute (s), 0 second (s)) === |

Please someone help me to run c as well as c ++ programs correctly in linux mint 17.1 (KDE) using code blocks.

And I apologize for my bad english.

+3


source to share


1 answer


Save it to a file called "install.sh" (without quotes) in your home directory, open a terminal (Ctrl + Alt + t) and run "bash install.sh" (again without quotes).



#!/bin/bash

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential -y
sudo apt-get install codeblocks -y
sudo apt-get install codeblocks-contrib -y
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get autoclean -y

exit 0;

      

+3


source







All Articles