codeblocks

Not catching all mouse events with wxWidgets

Hi I am am trying to catch mouse movements for a MouseOver function in an app created with Code::Blocks using the wxSmith plugin. I have stumbled upon a puzzling problem. EVT_MOUSEWHEEL calling the function in the EventTable works well, but all other macros have no result at all. And the mousewheel is not really want I want (I just ...

Is there an easy way to integrate a profiling tool with Code::Blocks?

I love working with the Code::Blocks (C++ IDE), and I got to wondering... is there a tool you can use to profile your code that integrates with Code::Blocks? I'm thinking of a Windows tool right now, but a Linux tool would be good too. Maybe something like valgrind but for Windows. ...

C++ Linker Error SDL Image - could not read symbols

Hi, I'm trying to use the SDL_Image library and I've added the .so to the link libraries list for my project (I'm using Code::Blocks, by the way). After doing this, when I go to compile, I get this error: Linking console executable: bin/Debug/ttfx /usr/lib32/libSDL_image-1.2.so: could not read symbols: File in wrong format What does ...

How can I make one Code::Blocks project dependent on another?

I have a workspace with two projects in it. One is a static library (we'll call it Project A). The other is a console app that links with the static library (we'll call it Project B). I went to Project B's properties and checked off Project A as a dependency of Project B. So I make a change to a file in Project A and rebuild Project B....

What Should be the Structure of a C++ Project?

I have recently started learning C++ and coming from a Ruby environment I have found it very hard to structure a project in a way that it still compiles correctly, I have been using Code::Blocks which is brilliant but a downside is that when I add a new header file or c++ source file, it will generate some code and even though it is only...

Can't Include winhttp.h (with code::blocks/mingw) c++

I've been trying to include winhttp.h and I get this error: Winhttp.h: No such file or directory Mingw doesn't have it, how would I add it? ...

HTML Encoding Blocks - Invalid expression term ':'

Hey everyone, I'm developing a new ASP.NET MVC 2.0 application and wanting to use the new ASP.NET 4 encoding blocks. My View code contains <%: Model.ActivityName %> however Visual Studio is reporting: Unexpected token at the position of the : (colon). When I run the application I get the following compilation error: Compile...

code::blocks CPU spike

I'm using Code::Blocks 8.02 in Ubuntu 9.10. If I leave Code::Blocks open for several hours, I notice that it's consuming a LOT of CPU. If I actually click on the application, the CPU usage immediately drops. Is anyone else having this problem? Is there a solution? ...

#include <string> adding ~43 KB to my exe

I'm using Code::Blocks to write my program and when I include <string> (or <iostream>) the size of my exe grows. My program is very simple and I need to keep it small <20kb. I'm pretty sure this is happening because of the C++ Standards Committee swapped the old .h versions for many new libraries without the .h. But how would I keep it f...

C++ linker error when trying to compile a second module using Code::Blocks

So I'm trying to learn C++ and I've gotten as far as using header files. They really make no sense to me. I've tried many combinations of this but nothing so far has worked: Main.cpp: #include "test.h" int main() { testClass Player1; return 0; } test.h: #ifndef TEST_H_INCLUDED #define TEST_H_INCLUDED class testClass { ...

(C++)Code:: blocks does not recognize QT4 classes

So far I have worked in the console and a few days ago decided to try the QT GUI. I downloaded the QT SDK , install it, adjust the location of QT and set up the PATH Environment Variable -> per the instructions on the site. I opened a new Qt4 project in Code:: Blocks-in and it seemed that everything was OK. There is by default an exampl...

(C++)Code::Blocks possible wrong setup for Qt4

OS : windows xp SP2 , compiler : Code::Blocks ver. 10.05 , Qt 4.6 I recently started to learn Qt. At first all went well with simple tut examples. I soon came across an example that can not compile and and realized that something is wrong. Here is the code : #include <QWidget> #include <QApplication> #include <QPushButton> #include ...

Is codeblocks 10.05. compatible with QtWorkbench ?

windows xp sp2 , codeblocks 10.05. , Qt 4.6 Does anyone know if codeblocks_10.05 is compatible with QtWorkbench-0.6.0_alpha. I made everything written on http://code.google.com/p/qtworkbench but when I go to compile, codeblocks freeze. I may have made a mistake somewhere in the setup, I do not know. The main question: Is it even CB 10:...

Need help with configuration of codeblocks for Qt !

codeblocks 8.02. , win xp SP2 , Qt 4.6 After installing Qt SDK, I installed QtWorkbench (codeblocks plugin that allows you to create Qt applications.) http://code.google.com/p/qtworkbench/. I worked under instructions from that page. I opened the folder "dialogs" and in it I opened a new empty codeblocks project. Also in this folder "d...

How do i enable code blocks in an xcode iPhone project?

I'm trying to enable code blocks in our iphone application so that i can run the static analyzer tool included with xcode. I get this warning (or error, depending on which compiler i use) when i run the build and analyze task: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Framewor...

Festival TTS API / CodeBlocks Build problems!

Hi, I want to use Festival TTS API with CodeBlocks. I have created a new project, and added in build options>linker settings: libFestival.a libestools.a libestbase.a libeststring.a I also added in the global compiler settings>search directories>compiler: festival\src\include speech_tools\include I am using gnu gcc compiler (ming...

Configuring Codeblocks for GTK+

I have configured CodeBlocks with lib , src, bin , include paths for GTK+ , and I have choosen the GTK+ project I am trying to run the program in http://pastebin.org/366972 But during build I am getting errors - please see http://pastebin.org/366980 . Am I missing something. ...

^M at end of lines when editing in CodeBlocks (I think)

I'm on Ubuntu Linux 10.04. I use vim for most of my development and CodeBlocks for debugging. When I first moved from Windows to Linux, I noticed that vim was showing ^Ms for newlines, and found out that this was a Microsoft thing. However, even after removing them I notice that they sometimes reappear in files (files that I edit in Code...

How to use CURL(pp) (wrapper)

How can I use Curlpp (or clean CURL)? Now, I'm trying to do few basic actions (for example use POST) and I can't compile my project (now, I am using Windows, mingw, code::blocks). I have added library, my IDE see this library. I heard about problems with curl+mingw+code::block. Solution is using definition #define STDC_HEADRES 1 in cu...

C++ Runtime Error caused by adding new function (which isn't ever used beyond it's definition)

This has been stumping me for a bit. I have a Class written in C++. Everything works fine. Next, I add funtion void A(); to the header file and run, It still works fine. However as soon as I add a new function definition to the CPP file, I get a runtime error every single time. (specifically: Process terminated with status -1073741510 (...