codeblocks

wxwidgets setup.h "no such file"

A quick Google search of this issue shows it's common, I just can't for the life of me figure out the solution in my case. I have a straight forward install of wxWidgets 2.8.8 for Windows straight from the wxWidgets website. Whenever I try to compile anything (such as the sample app described in "First Programs for wxWidgets" - http://...

writing Code::Blocks plugin

where will I find documentation for developing plug-in for Code::Blocks? Also, is there a comprehensive documentation for the Code::Blocks source code which I can use to modify the source and to add desirable functionalities to the Code::Blocks IDE ...

How to get RPATH with $ORIGIN to work on Code::Blocks GCC?

I'm trying to link an RPATH containing the special string $ORIGIN into an executable built using GCC with the Code::Blocks IDE. I've specified -Wl,-R$ORIGIN in the linker options for the project, but the command line output to GCC is wrong (stripped for clarity): g++ -Wl,-R What is the correct way to specify this argument for Code:...

How to automatically add header files to project?

How would I go about having a CMake buildsystem, which scans for source files now using AUX_SOURCE_DIRECTORY, scan for header files too in the same directory, preferably using a similar command? I didn't find an easy way to do this in the documentation yet, so I now have a crappy bash script to post-process my (CodeBlocks) project file....

Viewing language (C/C++) reference/documentation in CodeBlocks

Hi there! My first question on StackOverflow... Does anybody know a way of viewing the reference/documentation manual of a language through CodeBlocks? Specifically for C/C++. Example: Say I want to look up the reference for strncpy(). In a very old Borland system (which we use at school) I would write the word and middle-click on it,...

Multiple Clients writing to a single file using Logging Application Block

I have the following scenario: 1. .NET UI side uses Logging App Block to write to a flat file 2. Unmanaged Windows Service uses a proprietary logger to write to the same file as 1. Question: Is there a way to enable FlatFile TraceListener to close it's file handle once the entry is logged so that the Windows Service could also write to ...

Does Boost::Jam (bjam) have a "question mode"?

I use Code::Blocks with Boost::Jam. A recent update to C::B added some new "custom makefile" commands, one of which is "ask if rebuild is needed". According to this message, it's meant to call make in a "question mode": -q, --question ‘‘Question mode’’. Do not run any commands, or print anything; just return an exit status that is...

Pointing codeblocks to 3rd party libs

I'm confused on how I can setup codeblocks to see third party libs. For instance, I've downloaded everything for sql lite, unpacked it to a special place on the drive, and appended that location onto the window path. But no luck. I'm guessing a path needs to be setup within codeblocks (possibly variables?), but I'm unsure. Hope someone c...

Is there some kind of memory limit for an executable (written in C) to run without problems?

i´m doing a project using C, and CodeBlocks is my IDE. Windows Vista is the OS. I added some new stuff to the already working code and now the executable crashes everytime. i have no errors after compiling though. Computers and programming is not my field, but i suspect it may have something to do with some kind of memory limitations (if...

i need to implement a Butterworth filter in C. Is it easier get a library with this functionality or write the code?

My project is in C, CodeBlocks is my IDE and i´m running on windows Vista. I need to apply a Butterworth Filter to my data. I could do this automatically with Matlab as it had this (and other) Filter as a built in function. Computers and programming aren´t exactly my area and i have never "imported" a new library, and dont know how to do...

How do I use a block as an 'or' clause instead of a simple die?

I want to check the results of an operation in the Net::FTP Perl module rather than die. Typically you would do: $ftp->put($my_file) or die "Couldn't upload file"; But I want to do something else instead of just dying in this script so I tried: $ftp->put($my_file) or { log("Couldn't upload $my_file"); return(-1); }...

Finding a blog site with good code block support.

This has probably been asked before but I can't find any relevant post using the search system. I'm looking for a site where I could host my own blog. Unfortunately, I found none that have the kind of code block friendliness found on our very own stackoverflow (not one where you have to manually convert < and > into &lt; and &gt;). If ...

When do you use code blocks?

When do you use code blocks in C/C++/C#, etc.? I know the theoretical reason behind them, but when do you use them in real programs? EDIT: I have just realised that I use them in switch statements, where variables would otherwise be in the same scope (grr for things like i): switch (x) { case "abc": { /* code */ } break; } etc (Just ...

Blocks of code in python

Can you elaborate on the current state of "blocks" (in the Ruby sense) in Python? What are the language constructs that exist in python? How do they compare to other languages (like Ruby, Smalltalk, [insert more])? Or does python lack of such constructs? I have so far understood the lambda thing; it is only one-line, but maybe it comes...

Export a makefile from codeblocks

Is it possible to export a makefile from a c++ codeblocks project? If so, how is it done? Best Regards ...

Highlight Code Block Backgrounds with Vim

While I am working in Vim I'd like to have a slight background color change for all code inside the php tags. So for example, the background is solid black for regular XHTML markup, then displays slighly lighter inside the php tags to help me identify it quickly. Is this something I can/should do with the color scheme or is there another...

Problems with C::B compiler configuration

I configured MinGW to Code::Blocks correctly. I also checked that it works using the command line. I for some reason can't compile with any compiler at all. Not even with VC++. Is this a known issue? Does anyone knows how to solve it? This is the error I'm getting: "Static library - MinGW RELEASE" uses an invalid compiler. Skipping...

"Reload file?" error in codeblocks

Hi, I'm using codeblocks to as my IDE for C++ and every 10mins or so I get the following error message: "Reload File? File c:...node.cpp is modified outside the IDE. Do you want to reload it? (you will lose andy unsaved work)" Yes/No/All/Cancel If I click yes by mistake sometimes I lose the last couple of minutes of work. If I click ...

Why is MinGW very slow?

I'm using Code::Blocks IDE with Gcc/minGW on Windows and I'm trying to build a wxWidgets application which has ca. 20k lines and 40 source modules. And it builds very very slow. Compiling a cpp module lasts 2-5 seconds, and linking lasts even 2-3 minutes. It's a portable code, this code on Linux compiles very fast. I can't follow the bu...

absolute path... confused (ubuntu)

So in Code::Blocks in Ubuntu (latest). I have a project in which I load a file and read a number from it. #include <fstream> using namespace std; int main(){ ifstream in("data/file.t"); int n;in>>n; } now with a cout<<n it shows -1203926 (and other random numbers) though the number in the file is 0. data is where the binary ...