Questions tagged [code-blocks]

The open source, cross platform, free C++ IDE.

Filter by
Sorted by
Tagged with
32 votes
7 answers
8k views

Is there a way to blacklist an individual application from using overlay-scrollbars?

I am having problems with some programs when using overlay-scrollbars, mainly Code::Blocks and Eclipse. I've found several ways of disabling the overlay scrollbars completely, for all applications, ...
nicocarbone's user avatar
24 votes
5 answers
83k views

warning: GDB: Failed to set controlling terminal: Operation not permitted [duplicate]

I'm using Code-Blocks IDE in my Ubuntu 12.10.But when I'm trying to debug any project, I got the following warning: warning: GDB: Failed to set controlling terminal: Operation not permitted What ...
HammerEngineer's user avatar
10 votes
2 answers
16k views

How to install latest Code::Blocks from tar.xz?

How to install latest Code::Blocks using codeblocks_17.12-1_amd64_stable.tar.xz? Software center has an old version and I am not able to configure. How to install? Why is there no documentation for ...
psp077's user avatar
  • 123
9 votes
4 answers
18k views

Codeblocks Crash

I don't have a good experience with codeblocks on Ubuntu. I've tried in 15.10 and 16.04 and it always crashes after a while. I just open a console application, create some .h files and run. I use it ...
Vitor Abella's user avatar
  • 7,537
9 votes
1 answer
21k views

Set dark theme for menubar etc (NOT editor) code::blocks

I installed codeblocks-contrib that gave me more controls such as keyboard shortcut settings. However I still could not figure out how to apply dark theme all areas including menu bar and left pane ...
Evan S's user avatar
  • 377
8 votes
3 answers
48k views

Code::Blocks: g++ not found

Recently I have installed Code::Blocks IDE on my Ubuntu 12.10. The following error appears when I try to run or compile any code written in there: Compiling: /home/sabbir/first.cpp /bin/sh: 1: g++: ...
sabbir's user avatar
  • 223
7 votes
3 answers
20k views

How to change/reset zoom in CodeBlocks?

I pressed Ctrl + Capslock instead of Ctrl+Tab 4-5 times. Each time the font-size of the editor shrunk. I checked Settings -> Editor -> Font, but the problem was not from font-size, it's like a "zoom-...
Mohammad Jafar Mashhadi's user avatar
6 votes
4 answers
3k views

What is the quickest way to indent a block of text with spaces for use within a web browser?

I occasionally have the need to indent a block of text with spaces for use within a web browser, for example, when formatting a code block on this site or in a post on Launchpad. So far I've just ...
ændrük's user avatar
  • 76.7k
6 votes
4 answers
41k views

Is there any library similar to <conio.h>?

I used the IDE DEV C++ to compile C programs on Windows and I used the libraries and , but now I use Ubuntu and downloaded the Codeblocks, but it does not have these libraries. I just wanted to use ...
Patterson's user avatar
  • 1,360
5 votes
1 answer
13k views

How to install jsconcpp in ubuntu 14.04 for C++ development?

As the question tells how should I install jsonccpp in ubuntu 14.04. I have downloaded the jsoncpp-src-0.5.0.tar.gz form sourceforge. Then I opened nautilus using sudo and copied,pasted and extracted ...
Eka's user avatar
  • 2,967
5 votes
0 answers
712 views

Broken gui/graphics in Code::Blocks

I'm using Ubuntu 16.04.1 LTS. Code::Blocks looks like this: Sometimes editor window is visible but tool bars are invisible or unresponsive. How do I fix that ?
Maciej Szpakowski's user avatar
4 votes
1 answer
4k views

Change Keyboard Shortcuts for Codeblocks on Ubuntu Linux

On Windows, the Codeblocks keyboard shortcuts can be changed using a plugin. My guess is this plugin modifies a script or config file to store the modifications and assignments. I am guessing the ...
user3728501's user avatar
  • 1,054
4 votes
7 answers
30k views

Install Code::Blocks in Ubuntu 12.10

I installed Code::Blocks from Muon Software Center (I'm using KDE) and I got Code::Blocks 10.05. I found this link: https://launchpad.net/~pasgui/+archive/ppa/ After adding this PPA, and running ...
Bruce's user avatar
  • 153
4 votes
1 answer
525 views

Can not uninstall codeblocks apk

I tried to uninstall codeblocks from ubuntu software. After clicking remove it's showing "Unable to remove code::blocks IDE. No packages to remove" I tried another way, by running sudo apt-...
Pronay Sarker's user avatar
4 votes
1 answer
2k views

Arrow keys in Terminal shortcut don't work

I am new to Linux and am using Ubuntu 13.04. I have a C++ program named "dictionary" (full path: /home/anmol/Desktop/c++/dictionary), which I compiled with Code::Blocks IDE (and GCC version 4.7.3). ...
Anmol Singh Jaggi's user avatar
3 votes
1 answer
6k views

Change default console position in CodeBlocks

It's so annoying to drag it over and over again. How to change default position of a console?
Karolis's user avatar
  • 33
3 votes
2 answers
7k views

Codeblocks ctrl + shift + c not working

I'm using codeblocks for my C++ IDE. I am using Ubuntu 14.04 LTS. I like to comment out code using Ctrl+Shift+C. All of a sudden, though, it's stopped working! How do I turn it back on? EDIT ...
Kian's user avatar
  • 321
3 votes
1 answer
14k views

Code::Blocks 13.12 Process terminated with status -1 (0 minute(s), 0 second(s) )

I installed CodeBlocks in ubuntu and try with a hello world c++ program with the following code: #include <iostream> using namespace std; int main() { cout << "Hello world!"...
Sara's user avatar
  • 33
3 votes
1 answer
11k views

"packages have unmet dependencies" while installing Code::Blocks

While trying to install Code::Blocks, I run sudo apt-get install libwxgtk2.8-dev, but then receive an error listing many "unmet dependencies" for several packages. The full list of errors: ...
user3033693's user avatar
3 votes
1 answer
6k views

Install Code::Blocks 12.11 on Ubuntu

Just downloaded the Code::Blocks .bz2 file, extracted it and have a bunch of files which I don't know what to do with. A friend once showed me how to install it using the command line, but I can't ...
user3728501's user avatar
  • 1,054
3 votes
1 answer
14k views

How to update code::blocks to the latest version

I am using ubuntu 10.04. I have installed code::blocks, because I have read many good comments about it. But I have a problem: The code::blocks I installed wasn't the latest version, because I used ...
Rondogiannis Aristophanes's user avatar
3 votes
3 answers
318 views

code::blocks on Xenial Beta

Attempting to install code::blocks through the PPA with apt-get and not having much luck. I keep receiving these errors: The following packages have unmet dependencies. libcodeblocks0 : Depends: ...
ScottishTapWater's user avatar
2 votes
1 answer
29k views

How do I uninstall code block completely from Ubuntu 14.04(Including plugins)

I install code block with some plugins .but There is a problem with codeblock. so i want to uninstall codeblock completely so that i can install it from begining with new codeblock window.
jonyroy's user avatar
  • 21
2 votes
3 answers
21k views

multithreading in codeblocks

I tried to implement multithreading using codeblocks in ubuntu. I typed the following program. void *myThreadFun(void *vargp) { sleep(1); printf("Printing hi from Thread \n"); return ...
mahesh's user avatar
  • 53
2 votes
1 answer
1k views

I have a large window that won't resize, how can I fix it?

Codeblocks is taking a lot portion of my screen.I want it to take less screen (preferably upto the red rectangular size i have drawn).Is there any way I can do it ? I can resize the height, but that's ...
yoMama33's user avatar
  • 203
2 votes
1 answer
7k views

Auto Indentation not working in Code-blocks 13.12 (svn 9636)

I am using 12.04 LTS and for that reason I am not being able to install the latest packages of code-blocks 13.12 directly which we get directly from code-blocks website. So, I had to use the ...
Shakib Ahmed's user avatar
2 votes
3 answers
11k views

CodeBlocks in Ubuntu 18.04 doesn't show any result in Console after Build and Run. What should I do?

I have just switched to linux. Thanks in advance!
Rafid Haque's user avatar
2 votes
1 answer
7k views

Codeblocks not running at all after installation

Little history: Codeblocks 10.05 used to run smoothly in my Ubuntu. Now, I downloaded the deb package of codeblocks 12.11 and installed. But mysteriously, it forgets my every modification every-time ...
Shakib Ahmed's user avatar
2 votes
2 answers
1k views

Cannot remove codeblocks using apt-get - Ubuntu 14.04 [duplicate]

Whenever I try to run sudo apt-get remove codeblocks I am met with this message: The following packages have unmet dependencies: codeblocks-contrib : Depends: libgamin0 but it is not going to be ...
OKUZA's user avatar
  • 41
2 votes
1 answer
2k views

Can't compile tiny C code which uses librsvg

I am almost complete noob in linux world and I use Ubuntu 14.04 LTS with gnome-session-fallback (compiz) under VirtualBox on Windows 8.1 machine. My goal is to use this library: https://github.com/...
YuriM's user avatar
  • 23
2 votes
2 answers
3k views

Broken packages and can't run -f install [duplicate]

After I installed codeblocks it started giving me error I'm getting loads of errors. I'm new to Ubuntu( from windows) sudo dpkg --configure -a dpkg: dependency problems prevent configuration of ...
MegaGeek's user avatar
2 votes
1 answer
1k views

Wrong Compiler Error in Code Blocks

I am currently using code blocks 10.05 as a C++ compiler but I am facing a problem during building of source code (compiling) . It displays an error that - debug program uses a wrong compiler, ...
FOSS DIVERSER's user avatar
2 votes
2 answers
2k views

An error shown while saving C/C++ file in Code::Blocks

I have installed Code::Blocks from the Ubuntu store. I was trying to save C/C++ files, but it shows me the following problem. Are there any solutions? codeblocks An assertion failed! ../...
Noor Rahman's user avatar
2 votes
1 answer
822 views

Setting up Code Blocks with Irrlicht ubuntu 18.04: Trying to compile examples; many issues

I want to learn to make a game with irrlicht 3d engine and code blocks/c++. I installed codeblocks, I followed Irrlicht instructions from various sources, My current problems are below. These are the ...
Levy's user avatar
  • 23
2 votes
1 answer
886 views

Unable to run any code in code blocks,says permission is denied

Unable to run any code in code blocks says permission is denied screen-shot of error message displayed
Ajab Sharma's user avatar
2 votes
1 answer
950 views

Code::Blocks output window Position in Ubuntu [duplicate]

When I write my program and then compile & run it, my output window appears at the bottom right corner so I have to drag & drop it to the center so I can enter my data. Is there any way to ...
Mr.Beast's user avatar
2 votes
1 answer
7k views

how to add graphics.h to code blocks in ubuntu ? [duplicate]

I have installed the codeblocks from ubuntu software center and used good enough time no problem but when i try to access functions from graphics.h library I'm getting errors so please help me adding ...
Sai Teja Nagamothu's user avatar
2 votes
1 answer
5k views

How to create a installer package of my software made in Code Blocks

I am an amateur developer, I'm using Ubuntu for like 1 month or so and I want to know how can I create an installer package form my Code Blocks C++ generated release file..
Abhradeep Das's user avatar
2 votes
2 answers
4k views

Codeblocks C++ project won't build or run

I am a new Ubuntu user. I started C++ programming in Windows using Code::Blocks, and would like to try the open source environment of Linux. I am looking to set up Code::Blocks IDE to develop in C++. ...
chamburger's user avatar
2 votes
2 answers
2k views

Unable to install latest version of Codeblocks

I am presently using Kubuntu, and now I want to install Codeblocks latest version. I tried using $ sudo apt-get install codeblocks but, it gives me Codeblocks 10.05. I don't know where is the ...
shivshnkr's user avatar
  • 5,053
2 votes
0 answers
3k views

Codeblocks not working properly

I was running Ubuntu 15.04 until yesterday and codeblocks worked fine, but when I upgraded distro to 15.10 it broke some functionalities. For example, before I used codeblocks program.cpp > /dev/...
Ivan Lazaric's user avatar
2 votes
0 answers
2k views

How to run Code::Blocks from a USB Flash Drive

I have been using Code::Blocks IDE for quite some time, and I have had no problems with it until now. I have recently decided to move almost all of my programs onto a USB for portability. Eclipse ...
Bubba3033's user avatar
2 votes
0 answers
397 views

Code Blocks is using 100% of CPU

I'm using Code Blocks 10.05 on Ubuntu 12.04 and it's using 100% of the CPU with no project or files open.
vince's user avatar
  • 21
1 vote
2 answers
19k views

Permission denied for codebloks [duplicate]

i have installed code blocks from Ubuntu software Center. When I create a new project and compile it, in the output window it say "permission denied". How must I run code blocks, or where should I ...
Morteza's user avatar
  • 29
1 vote
1 answer
3k views

Can't find -lGL from /usr/lib/ld

Whenever I try to compile Code::Blocks' C++ projects I get this error: /usr/bin/ld: cannot find -lGL I've tried installing following packages in accordance to other solutions to this problem: fglrx-...
Jabu-Jabu's user avatar
1 vote
1 answer
4k views

How to run C program on 14.04?

I'm trying to run some C programs using Geany and Code::Blocks. After coding them, when I run them, a message is showed in the terminal like this: In Code::Blocks: sh: 1: /home/c program files/2: ...
Mr. Tripple M.'s user avatar
1 vote
1 answer
347 views

When I am closing Codeblocks I am facing this error

I am using Ubuntu 20.04. I get this error message when closing Codeblocks. Could not save config file '/home/santo/.config/codeblocks.default.conf'!
Jamil's user avatar
  • 13
1 vote
1 answer
2k views

How do I install Turbo C or Code::Blocks?

How can I install Turbo C or Code::Blocks on Ubuntu? I am new to Ubuntu so please explain step-by-step. I tried to write a program in Gedit, but could not find out how to run and execute it.
Samarth Agrawal's user avatar
1 vote
1 answer
323 views

Code::Blocks 20.03 can't suddenly find -lglfw3 in Ubuntu 20.04

I installed Code::Blocks in my Ubuntu 20.04 about a month ago and tested it with a GNU GCC Compiler. It could run a simple "Hello Word"-program. I didn't use CodeBlocks after that. But now a ...
Jabu-Jabu's user avatar
1 vote
1 answer
231 views

Can I install the previous version of Codeblocks "Codeblocks 17.12" on Ubuntu 20.04 lts? [duplicate]

Now Codeblocks 20.03 is available. But I want to install codeblocks's previous version 17.12. Is it possible to install the previous version on ubuntu 20.04? If yes then how? Please help me to do it ...
Dabananda Mitra's user avatar