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
1 answer

Debugging Intel Compiled Project with GDB

I've got a simple Hello World project in the Code::Blocks IDE which I'm compiling using the Intel C++ compiler. I've set the compiler option '/Zi' in the projects Build Settings so I can debug the application with breakpoints. However no breakpoints…
DundeeDave
  • 73
  • 1
  • 7
1
vote
0 answers

Using external libraries in Code::Blocks

I'm a complete newbie when it comes to using libraries, so any assistance would be very welcome. I use Code::Blocks and am trying to link my code with libraries. I have two libraries to be linked : "libone.a" and "libtwo.so". So, according to this ,…
user129186
  • 1,156
  • 2
  • 14
  • 30
1
vote
1 answer

C MySQL error "fatal error LNK1107: invalid or corrupt file: cannot read at 0x368"

first off i'd like to start by explaining i am new to none web based programing languages, so this is really all new to me. But ive been trying to solve this problem all night and cant seem to get it. so I just installed a bunch of MySQL libraries.…
pmiccich
  • 49
  • 1
  • 2
  • 9
1
vote
1 answer

Undefined reference to constructor and destructor c++

The error that I'm getting is this: ||=== Build: Debug in Building Sim (compiler: GNU GCC Compiler) ===| obj/Debug/main.o||In function `__static_initialization_and_destruction_0':| /home/josh/Documents/cpp/building_sim/main.cpp|15|undefined…
theStandard
  • 212
  • 2
  • 9
1
vote
2 answers

'board' was not declared in this scope

I am writing a C++ Tic Tac Toe game, and this is what I have so far: #include using namespace std; int main() { board *b; b->draw(); return 0; } class board { void draw() { for(int i = 0; i < 3;++i){ …
lost_in_the_source
  • 10,998
  • 9
  • 46
  • 75
1
vote
0 answers

OpenCV can not find library on launch. Backwards compatibility?

I am trying to build and use a piece of C++ code that uses OpenCV. I am working on Linux, working in Code::Blocks (and the code was originally also developed on a Linux platform using C::B). I followed this to install OpenCV (Ubuntu 12.04 & OpenCV…
Matt
  • 11
  • 2
1
vote
1 answer

installing external 'library?' in codeblocks

I'm new to programming and wanted to check this program called primesieve. http://primesieve.org/ I have windows 7 with codeblocks ide. I tried searching for a way to execute the program but couldnt find anything useful. I have never added a library…
lordvigm
  • 13
  • 2
1
vote
0 answers

Codeblocks Custom Build Command Hangs

I have an issue where when I type the build command into the terminal, it works just fine, but when I use it in Codeblocks as a custom build command, Codeblocks will say that it's compiling, suck up 100% CPU, but not actually do anything. Here's my…
1
vote
1 answer

Fatal error: ios: no such file or directory

So I've got this problem with Code::Blocks 12.11 where I try and compile a simple program and get a seemingly common error. c:\program files (x86)\codeblocks\mingw\bin../lib/gcc/mingw32/4.7.1/include/c++/ostream:40:15: fatal error: ios: No such file…
Gnaglor
  • 11
  • 3
1
vote
1 answer

Build successful, but I get GLEW error when trying to run a program

I am trying to compile and run a C++ & OpenGL ( with GLEW ) program in CodeBlocks 13.12 . The code built successfully, but when I want to run it, it gives me the error ( Entry Point Not Found ) saying : The procedure entry point glewInit@0 could…
James C
  • 901
  • 1
  • 18
  • 38
1
vote
1 answer

Error: Storage class specifiers invalid for parameter declarations

when I compile my program for Linux I get this error: error: storage class specifiers invalid for parameter declarations This only happens on Linux as it compiles fine for Windows. The line of code is: int Start(static const char* m_vertexshader,…
Boncey
  • 157
  • 1
  • 2
  • 8
1
vote
1 answer

Multiple symbol definitions, but I only define my symbols once

I'm having some issues with compiling a program using a class inside of a header file. I believe that I set up the project and linker settings right, but it seems no matter what I try, it gives me an error. I've searched all over forums and i"m at…
1
vote
0 answers

CanonSDK with OpenFrameworks and OfxCanon

I'm trying to pull video from a 600D into OpenFrameworks using the ofxCanon add-on in Windows and CodeBlocks. I've followed the instructions here: http://forum.openframeworks.cc/t/ofxcanon-installation-on-windows/11173 But when I go to compile a…
mkc
  • 11
  • 2
1
vote
2 answers

SDL2: undefined references to strange functions

i have written this small piece of Code for testing purposes: #include #include "SDL2/SDL.h" int main(int argc, char* argv[]) { if (SDL_Init(SDL_INIT_EVERYTHING) != 0) { printf("Unable to initialize SDL: %s\n",…
1
vote
2 answers

Cannot input data, Output seems weird in C

This is my code, Im using codeblock #include struct engine { char name[100]; int rpm; int hp; char manufacturer[100]; }; struct engine data; int main() { printf("Please insert engine information \n"); …
user1852728
  • 161
  • 2
  • 6
  • 13
1 2 3
99
100