Which Amiga platform and version are you using?
What does the same line look after compiling with -E, ie. just running the preprocessor over it. Does DoMethod get delcared somewhere?
If OS4 and using __USE_INLINE__ add -DDoMethod=IDoMethod to GCC. if not using __USE_INLINE__ try adding -DDoMethod="IIntuition->IDoMethod"