/opt/gcc-3.1/bin/g++ -g -I/usr/local/include/SDL -I. -fno-exceptions -D_DEBUG -DNO_CD_CHECK -UNDEBUG -DNO_DIRECT3D -DNO_SOUND -DNO_JOYSTICK -DNO_NETWORK -DNO_STANDALONE -DUSE_OPENGL -c -o controlconfig/controlsconfig.o controlconfig/controlsconfig.cpp
In file included from controlconfig/controlsconfig.cpp:319:
ui/ui.h:385: friend declaration requires class-key, i.e. `friend struct
UI_WINDOW'
ui/ui.h:386: friend declaration requires class-key, i.e. `friend struct
UI_BUTTON'
ui/ui.h:387: friend declaration requires class-key, i.e. `friend struct
UI_KEYTRAP'
....
Look familiar?