headfile conflict let every line becomes "not declared"

Posted by altria on Stack Overflow See other posts from Stack Overflow or by altria
Published on 2014-06-03T03:23:11Z Indexed on 2014/06/03 3:24 UTC
Read the original article Hit count: 104

Filed under:

I have a.h a.cpp b.h and a library for b.

The thing is, if I choose to include b.h in either a.h or a.cpp, it will let complier return "was not declared in this scope" for every line of a.h.

The same program works fine on another computer, although Makefile might be different. I have to admit, I think I may have change some settings, but I forgot which one I changed.

Is there anybody have any idea?

I am using linux and gcc.

© Stack Overflow or respective owner

Related posts about c++