Questions tagged [codeblocks]

This tag is for Code::Blocks, an open-source C++ IDE. Do not use this tag for code blocks which define scope (e.g. curly braces).

Code::Blocks is a free, open-source and cross-platform IDE which supports many languages, see the list of supported compilers.

This tag shall not be used for code blocks that define scope, e.g. variable declarations like

{
    // code block
    int i=0;
}
4312 questions
1
vote
0 answers

Pocketsphinx - Code::Blocks, windows crashing

I am trying to run this tutorial: http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx. I built both sphinxbase and pocketsphinx on VS 2013. I tried to compile my code on both VS and Code::Blocks. The executable made by VS runs as expected,…
1
vote
2 answers

Assign code blocks to a property objective c

I'm attempting to get Background App Refresh going in my iOS application. However, I'm having some trouble understanding code blocks. I've done some research on it, and would say I have a beginner's understanding so far. The method in question…
Salx
  • 579
  • 5
  • 21
1
vote
1 answer

C++/C Code::blocks crashes while editing

I'm not completly sure if it's proper to ask this here, but... I'm a student forced to work with Code:Blocks IDE on Win7 (64 bits), and it keeps crashing everytime I try and add/edit an #include, I've tried in both C and C++ and I think it's got to…
Bruno
  • 11
  • 2
1
vote
1 answer

How to build a stand-alone exe file wxWidgets

How to build a stand-alone exe file with wxWidgets? I'm using C++ and CodeBlocks:
Jessie
  • 363
  • 2
  • 6
  • 20
1
vote
2 answers

Codeblocks compilation not executable

I'm trying to compile the following code using Codebloks Nightly svn 9916 #include "Main.h" #include using namespace std; int main() { cout << "Hello World!" << endl; return 0; } Running the executable from inside Codeblocks,…
Matze
  • 533
  • 7
  • 16
1
vote
1 answer

Getting the C++ compilers in Code::Blocks and Visual Studio to adhere to C++(11) standard?

I use two C++ compilers / IDEs. (1) g++ in Code::Blocks and (2) Visual C++ in Visual Studio. I have some question on how to set up the compiler in the way I want it to be. Code::Blocks: I want to make G++ follow standard C++. For example: int x;…
Thenewstockton
  • 443
  • 6
  • 18
1
vote
1 answer

Eyewriter 2.0 Compiling Errors

I'm currently working on the eyewriter 2.0, with the idea that if I can get it working, we can recommend the DIY to our ALS patients and their families. However, I've been running into many complications while trying to get the software up and…
becky2093
  • 11
  • 2
1
vote
1 answer

OTL 4.0 in code::Block

Recently I decided to move to open source, so I stumbled into Code::Block which has a nice GUI, (WXwidgets). I am dealing a lot with databases like MS Access and SQLite. Having burned some midnight oil trying to figure out how to use OTL 4.0, I gave…
SimonOngsk
  • 121
  • 1
  • 4
  • 12
1
vote
1 answer

Printing only one combination using nested loops

I have to print combination of different currency notes a man should have to pay to the cashier. Program first ask total amount to be paid and then notes of different denominations that he possesses. The problem is, I have to print only one…
1
vote
1 answer

Code in CodeBlocks stops working when I try to compile

I made a code in CodeBlocks that seems perfectly fine, but when I compile it the following (in the images in the link) happens: http://postimg.org/gallery/imbtu6ns/ Here is the code: #include #include #include int…
Cepphei
  • 19
  • 6
1
vote
1 answer

strange Behavior of sdcc compiler for 8051

I previously used Keil for programming 8051 microcontrollers. For some reason I have to code in SDCC, but today I am facing very strange behavior in Compiler. I am using Code blocks IDE 12.11 and SDCC 3.4 version. I am compiling this simple piece…
Abdul Rehman
  • 2,224
  • 25
  • 30
1
vote
4 answers

How to compile with FLTK under Ubuntu

I am using Code:blocks under Ubuntu 12.04 LTS. I am attempting to compile my first program using FLTK and I get the following errors. Linking console executable: bin/Debug/ /usr/bin/ld: cannot find…
Bear35645
  • 193
  • 1
  • 3
  • 14
1
vote
0 answers

How to show arrays in fortran subroutines in debugging mode (netbeans and code blocks)?

I am using gfortran with Code::Blocks 13.12 and NetBeans 8.0. Both are using GDB debugger. Codeblocks uses MinGW, netbeans uses Cygwin. In both cases I have latest stable compiler, debugger and make. But neither of them can show array values in…
DDR
  • 459
  • 5
  • 15
1
vote
1 answer

How to compile CodeBlocks MingW in Windows to Ubuntu or Centos

Is there a way to compile with MingW with CodeBlocks in Windows so they can be used in Ubuntu or Centos distros? I've tried compiling with GNU GCC option then got the output file with .o extensions under obj/Release/ folder. When I run I get this…
Passionate Engineer
  • 10,034
  • 26
  • 96
  • 168
1
vote
0 answers

CMake vs CodeBlocks executable size differs

I have a project in C++, Ubuntu, Linux 64. If the binary is build it with make, generated from cmake. based on CMakeLists.txt yelds a binary of ~720Kb, while code::blocks yields 525Kb binary. My question is why…
Ion Ion
  • 51
  • 3