Simple flex C++ example
Simple, working examples are usually the best way to start customizing an existing software tool to fit your needs.
Today I was testing flex’s C++ generation and unfortunately the provided sample is not working, and it also lacks a ready-to-go Makefile. Some of the error messages look like missing dependencies:
`cout' undeclared . . . undefined reference to `yywrap'
The fixes are trivial, so it was easy to get a working flex foobar.l source and Makefile:
foobar.l
%option noyywrap
Wader-UI prototyping with Qt and D-BUS
Wader, and Betavine Connection Manager since 3.0, your favorite cellnet connection managers, sport a nice GTK+ user interface completely decoupled from their core functionality, which runs as a standalone component, using D-BUS for IPC.
As one of my regular hacking activities, this weekend I decided to take a look at Qt’s Python bindings, and try to build a proof-of-concept Qt Wader UI interacting with a core using D-BUS.
I tried the two