Since I use "-qconfig medium" to configure, so some defines are surely undeclared. Actually whenever I use "-qconfig medium", "-qconfig small", "-qconfig minimal" or "-qconfig my", compiling examples will definetely fail here or there.
The "./configure" does not seem to have intelligence to properly configure to compile examples, it just simply compile them all. I found, this problem exists in all qtopia core releases.