Archive

Archive for March, 2010

The Mysteries of C++

March 28th, 2010 2 comments

I like C++, but sometimes it appears to work with the aid of magic which I don’t fully understand. Last time (was it really 3 weeks ago?) I mentioned a problem I had with compiling the software I have been offering to subscribers to this blog with the GNU compiler. Or, to put it more honestly, I created a problem which g++ legitimately complained about, but which the other two compilers I tried (VC++ and IAR)  allowed me to get away with. I am simplifying somewhat but basically I coded something like this: Read more…

Categories: C/C++ Tags:

Free software: thwarted by g++

March 8th, 2010 No comments

The free software you may have downloaded from this site embodies an error of principle (details another time). It compiles with VC++ and IAR (ARM), and the code is correct and runs properly. However, I tried g++ today and it was less forgiving. Unfortunately, it’s right and I’m wrong, even though I got away with it up to now. I’m working on a fix and will post again when I have finished it.