Tuesday, May 27, 2014

CodeBlocks Installing and Troubleshooting in UBUNTU

Instagram
Code::Blocks is a cross-platform Integrated Development Environment. Most of its functionality is already provided by plugins.

For Installation use this link.  Or in terminal execute,
             sudo apt-get install codeblocks

After creating a project if it shows you a broken main.c file then make sure your project path have the proper permission for read and write. ;)


When compiling your first c program may be you'll get following error in your console log.

    Compiling: main.c
    /bin/sh: g++: not found
    Process terminated with status 127 (0 minutes, 0 seconds)
    0 errors, 0 warnings


It cause you haven't install g++. To ensure that execute following command in terminal.

    aptitude show g++ | grep State:

If this shows not installed, then execute,
         sudo apt-get install g++

Try compiling again...........



Happy Hacking..... ;)

No comments:

Post a Comment