codeblocks

Tutorials for creating an ActiveX Control in Code::Blocks

Hi there. I need to write an ActiveX control and have never written one before. I'd appreciate being pointed to some useful tutorials. I'm also wanting to implement it under Code::Blocks. Has anyone done this before? how easy is it? Note: I've found a number of tutorials, but they are either for visual basic, or visual c++ based. ...

Is there a way to rebuild Code::Blocks code completion database?

I would like some data structures to be studied by Code::Blocks and made available via its code completion feature. Something similar could be done in SlickEdit. How to do that in Code::Blocks? ...

Debugging with Code Blocks and a custom make (Boost.Build)

I've been using Code::Blocks with MinGW on a WinXP box for a while now. But since I started using Boost.Build as "custom build tool" I'm having trouble setting break points from Code::Blocks. When I start a debugging session Code::Blocks tries to send all break points to GDB but GDB doesn't seem to recognise the sources' filenames: Debu...

file search in c++

hey I just started learning c++ and am currently using codeblocks. i wanna write an application that can search for files in directory including it's subdirs, but i cant seem to find any good examples for this and i've read somewhere that this is only possible trough a library like boost. is this true? any examples for doing it withou...

Linker can not find static library in same directory

I'm porting some Visual Studio 2008/VC9 stuff to Code::Blocks/MinGW and for some reason the linker cannot find a static library from another project in the workspace. In Visual Studio 2008 I could just set the static lib project as a dependency, and it would build in the right order (i.e. static lib needs to be built before linking the ...

Using SVN with CodeBlocks Projects

I have an SVN repository setup online and I want to use it to manage my C++ projects in CodeBlocks. I read that SVN can only track changes to text files, so how do I manage the .cbp project files and other non-text files. Do CodeBlocks projects have a way to checkout files from the repository and deal with changes? Or should I commit ev...

SDL with Code::Blocks and Visual Studio 2008 VC++ Compiler

I've looked around on Google for tutorials on setting up SDL with it. The problem is that all the tutorials for linking to SDL with Code::Blocks is with the Mingw compiler, and never with VC++ 2008 Compiler. I have the SDL for VS downloaded at C:\SDL. The problem is, I can't get it to work with Code::Blocks. What do I need to do? I tri...

Code::Blocks: How to run within IDE?

When I ask CodeBlocks to run my built application it spawns a terminal window and runs the application within that window. How do I instead get it to run within the IDE's log window? ...

Any hosted blog engine with integrated markdown and code highlighting?

Is anyone aware of any hosted blog engine (like wordpress.com for example) that supports writing posts in Markdown, and also supports code highlighting? ...

gcc code::blocks shared library questions

I'm using code::blocks on a linux system with the gcc compiler, and I want to be able to use the shared library template to make a shared library with classes, then make another project that accesses that shared library(at compile time, not dynamically) and classes. I'm sure that code::blocks has simple way of doing this without making c...

error while loading shared libraries

Hello! I'm trying to install Code::Blocks from source. There is an `anarchy' folder on my university's CS department's mainframe, where anyone can install anything, basically. wxwidgets is a dependency of Code::Blocks, and I'm trying to put wxGTK, as it's called, into my own folder on `anarchy', which works fine. I then compile Code::...

How to remote debug with a cross-debugger under Code::Blocks ?

I've set up my target toolchain (ARM), I can compile my projects, and launch them on the remote hardware (an OMAP3 based board). I have set up project properties for remote debugging for my target. But when I launch the debug process, it seems to launch "system's default gdb" instead of the one configured in Settings\Compiler and Debug...

Genshi TemplateSyntaxError on python block where it should work

<?python class += 1 ?> One really simple line of code which definitely should work, but still it gives me this error: TemplateSyntaxError: invalid syntax (file.html, line 22) I shorted the filepath for readability, but that's the exact error. I'm definitely sure it should work, as I've used <?python i += 1 ?> In another file,...

PCRE: Find matching brace for code block

Is there a way for PCRE regular expressions to count how many occurrences of a character it encounters (n), and to stop searching after it has found n occurrences of another character (specifically { and }). This is to grab code blocks (which may or may not have code blocks nested inside them). If it makes it simpler, the input will be...

I need help with this ogre dependent header (Qgears)

I'm 2 errors away from compiling Qgears. (Hacked Version of the Final Fantasy VII Engine) I've messed with the preprocessors to load the actual location of the ogre header files. Here are the errors: ||=== qgears, Debug ===| /home/cj/Desktop/qgears/trunk/project/linux/src/core/TextManager.h|48|error: invalid use of ‘::’| /home/cj/Desk...

Passing multiple codeblocks as arguments

I have a method which takes a code block. def opportunity @opportunities += 1 if yield @performances +=1 end end and I call it like this: opportunity { @some_array.empty? } But how do I pass it more than one code block so that I could use yield twice, something like this: def opportunity if yield_1 ...

Compile OpenCV 2.0 in MinGW and Codeblocks (win)

Hi all, it's a long time since I try to compile OpenCV2.0 in Windows successfully but this has never happened.. (I can compile successfully in Linux) First I installed MinGW with g++, GDB and Code::Blocks.. than I installed CMake and OpenCV2.0 (editing a "cxoperations.hpp" line to #if GNUC >= 4 || MINGW32) I make OpenCV from source "Op...

Portable C Compiler (pcc) with GTK+ in Code::Blocks

I had some problems when trying to compile a GTK+ program with Portable C Compiler (pcc) using Code::Blocks in Windows. When I tried to build the default GTK+ project in Code::Blocks, I get these errors: -------------- Build: Debug in cb-temp2 --------------- Compiling: main.c C:\CMPITG\gtk\include\glib-2.0/glib/gutils.h, line 423: par...

Is there a way to use Qt's unit testing modules as part of a Code::Blocks project with the QtWorkbench plugin?

We're developing a Qt project using the Code::Blocks IDE with the QtWorkbench plugin. We'd like to take advantage of Qt's unit testing modules to test our code, but from what I've read online, the only way to do so is to use qmake to manually create a new "project" and makefile for each unit test and then to build and execute that projec...

Variable declarations following if statements

An issue came up on another forum and I knew how to fix it, but it revealed a feature of the compiler peculiar to me. The person was getting the error "Embedded statement cannot be a declaration or labeled statement" because they had a declaration of a variable following an if statement with no brackets. That was not their intent, but th...