Another bump. Switching to gcc 4.7.0 and trying to compile my qt code with -std=c++0x, fails legendary. The error message is intuitive like ever. It says something like: error: inconsistent user-defined literal suffixes ‘_FILE_’ and ‘QTOSTRING’ in string literal According to this https://bugreports.qt-project.org/browse/QTBUG-22847?focusedCommentId=168644&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel According to this, here is the solution, at least until we get [...]
I needed to have gcc 4.6+ on my laptop to compile some c++11 code, which my gcc 4.4.4 from synaptic wasn’t able to handle. Yes, yes ‘update your ubuntu’ is the default warcry in such situations, but I didn’t want that to happen, not yet. So I needed a second gcc in my system. This [...]
What a wonderful, inspiring weekend, spent writing some C in Cygnus Editor. Few months ago a coder from my demo group from the nineties found his Amiga 1200 with a fully functional and kicking hard disk. In one of its deeply nested, completely deprived of any systematical approach, ‘drawers’ (that’s how folders were called on [...]
When using qmake as your build system, if you have a project which depends on a, e.g. external_library.a, you will need to set it up so that it can rebuild the library automatically, whenever the external library changes. In Visual studio this is easily done via its GUI, project properties, dependencies section, but when it [...]
Looking for a printf replacement when coding NDS homebrew? Okay, (i)printf is nice, most of the time, but sometimes (actually quite often) you just can’t use it, be it for reasons like you’ve exhausted all video memory locations, or you need both screens, if you are coding something more complex than a simple effect, or [...]
Here is a simple way to get high precision timer on both Linux and Windows (can’t remember where I saw parts of this code, but I hope wrapping it up and spreading it won’t make the author angry) : cross_platform_timer.h cross_platform_timer.cpp I added few helper wrappers to make the life easier, you can get current [...]
If this happens to you, you most likely have NVidia gfx card, and the set up has poked the gl.h. To remedy this without having to reinstall anything, just add this to your code, before calling #include : #define GL_GLEXT_PROTOTYPES 1 #include <GL/gl.h> For some reason th glActiveTextureARB prototype is under #ifdef GL_GLEXT_PROTOTYPES section. Adding [...]
I was working yesterday on some texture sampler, and recalled a simple thingy that was a great help back in the 90′s, which I completely forgot in recent years. If you have a counter, sampler or whatever that has to get wrapped around e.g. 256, 512 or any other power of two, you can use [...]
You can download my Komodo and Qt Creator ‘dark’ themes from: http://www.modmancer.com/downloads/dev_blog/dew_dark.ksf http://www.modmancer.com/downloads/dev_blog/dew_dark.xml For Komodo: copy the Komodo theme to your ~/.komodoide/5.2/schemes folder. For Qt Creator 2.0: copy the Qt Creator theme to your ~/.config/Nokia/qtcreator/styles folder.