| Days | |
| Hours | |
| Minutes | |
| Seconds |
Whew. My WordPress was broken for a while now. I did an update using Dreamhost’s one-click installs and it blew to pieces. Obviously I have it working again though :) Never found the problem, just did it from scratch.
Also switched to a new highlighting plugin. I like it better, but I had to hand correct all my tags, so if I missed some, my bad.
Posted November 3rd, 2007 - PermalinkHere’s a handy g++ option that will let you make up accurate makefiles in a jiffy, -MM.
g++ -MM *.cpp
Run that on your source directory and you’ll get a makefile style list of includes. If it doesn’t work, make sure you add in your compile time defines (like -D_x86 -D_LINUX). This won’t actually check that you need the files you have included, it just makes a list of the ones you have included.
I like to add a sed line to make breaks between source files, like so.
g++ -MM *.cpp | sed 's/^\([a-zA-Z]\)/\n\1/'
It’s very literal though, so if you do “../StaticDevice.h” type includes, watch out for double entries.
$ g++ -MM -D_x86 -D_LINUX devices/*.cpp | sed 's/^\([a-zA-Z]\)/\n\1/' BaseDevice.o: devices/BaseDevice.cpp devices/BaseDevice.h devices/Enums.h BaseStream.o: devices/BaseStream.cpp devices/BaseStream.h CameraTest.o: devices/CameraTest.cpp devices/../camera.h \ devices/../devices/Nikon/NikonDevice.h \ devices/../devices/Nikon/../StaticDevice.h \ devices/../devices/StaticDevice.h \ devices/../devices/Panasonic/PanasonicDevice.h \ devices/../devices/Panasonic/../StaticDevice.h \ devices/../devices/BaseDevice.h devices/../devices/Enums.h \ devices/../devices/Prosilica/ProsilicaStaticDevice.h \ devices/../devices/Prosilica/ProsilicaDevice.h \ devices/../devices/Prosilica/../BaseDevice.h \ devices/../devices/Prosilica/ProsilicaDeviceConfigurator.h \ devices/../devices/Prosilica/../inc-pc/PvApi.h \ devices/../devices/Prosilica/../Enums.h \ devices/../devices/Prosilica/../StaticDevice.h $
The similarities between GTA & GGG?


You know that feeling where you’ve been struggling with understanding something for hours, or days, and then it just pops into place? I love that feeling. I just had that feeling with GTK and libsigc++.
Posted June 22nd, 2007 - PermalinkMy beloved last.fm has been sold to CBS. Not cool, but at least it will still be run by the same people.
Posted May 31st, 2007 - Permalink