Reputation: 851
i am new Linux user. Currently installed Ubuntu 14.04 LTS. I have installed code Blocks from Ubuntu Software Center. i have tried to create c file. But the problem is that after creating any Projects or Empty file when clicking the build and Run option it is showing that the project has not build yet. In the build log the following message has shown
gcc -c /home/u/ProGrams/C_CodeBlocks/TestProject/main.c -o /home/u/ProGrams/C_CodeBlocks/TestProject/main.o
g++ -o /home/u/ProGrams/C_CodeBlocks/TestProject/main /home/u/ProGrams/C_CodeBlocks/TestProject/main.o
/bin/sh: 1: g++: not found
Process terminated with status 127 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Checking for existence: /home/u/ProGrams/C_CodeBlocks/TestProject/main
Executing: terminology -M -T '/home/u/ProGrams/C_CodeBlocks/TestProject/main' -e /usr/bin/cb_console_runner "/home/u/ProGrams/C_CodeBlocks/TestProject/main" (in /home/u/ProGrams/C_CodeBlocks/TestProject)
Process terminated with status 255 (0 minute(s), 34 second(s))
Then searched net, found some solutions that the compiler may not set as gcc. I have only one complier in my machine,in time creating project, i have selected the gcc compiler. But the problem remain Same.
Another solution that Settings-> Compiler-> Toolchain executables
i have selected once Auto-Detect option and once the /usr/bin
. But the problem not gone.
Help me to solve this problem...! If any additional information needed, please dont forget to tell.
Upvotes: 1
Views: 3604
Reputation: 19
Install g++
Go to your terminal(ctrl+alt+T) and type
sudo apt-get install g++
Upvotes: 1