smallB
smallB

Reputation: 17110

Precompiled header gives stray 216 error

When I precompile header with gcc 4.6.1 and then try to use it I'm getting error stray '\216'. During compilation there wasn't any errors so what's the story?

Upvotes: 1

Views: 414

Answers (1)

How do you use it?

Your #include should not change, mentioning the original header file, like #include "header.h"

But your directory should contain both header.h and  header.h.gch and of course the source file foo.cc or bar.c which has #include "header.h"

Upvotes: 1

Related Questions