svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets
and I compiled it in this way:
cd wxWidgets
./configure --with-hildon
make
make install
then I grabbed a simple "HelloWorld" from the official documentation. You can find the complete source code here.
I compiled the source code in this way:
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
then I ran it in the usual way:
run-standalone.sh ./hworld
The result? I think that a screenshoot is better than thousand words :)

N.b: I tested this inside Scratchbox, using CHINOOK_x86 target, so I think it will work fine on Os2008. This could be a good thing to help other developers porting some interesting applications (uhm... aMule for example ;) ) to Maemo.