How to deal with unauthorized inclusion in eclipse in C ++

I import two self-defined projects: projectA and projectB classes in projectA include headers in project B but the eclipse always shows yellow and red lines to say that the inclusion is not allowed. (I am sure that all the syntax and setting for inclusion is correct, since they are projects that have been developed and used for a long time) How to deal with this?

Do I need to right click and do index-> ​​rebuild or something else?

+4
source share
1 answer

You can set the path to the projectB header files in projectA in the section:

Project β†’ Properties β†’ C / C ++ Build β†’ Settings β†’ Compiler β†’ Includes

enter image description here

+1
source

All Articles