Miss head file diagnostic.h in plugin.h?
Joseph S. Myers
joseph@codesourcery.com
Sun Nov 28 00:37:00 GMT 2010
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
joseph@codesourcery.com
More information about the Gcc
mailing list