On Sat, 27 Nov 2010, Mingjie Xing wrote:

> The first error occurs due to that using diagnostic_context in the
> plugin.h without including diagnostic.h. The second error is about

diagnostic_context is declared in coretypes.h.  All headers are expected 
to depend on coretypes.h; the include order should generally start

#include "config.h"
#include "system.h"
#include "coretypes.h"

before any other GCC header is included.  Maybe gcc-plugin.h should 
include coretypes.h since it includes the other two.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to