Eclipse CDT: Unresolved inclusion of stl header

后端 未结 4 1661
感动是毒
感动是毒 2020-12-01 05:37

I\'m trying to use Eclipse to edit sources, compiled under C++ Builder, but stuck with Unresolved inclusion problem.

For example, code like:

<         


        
4条回答
  •  [愿得一人]
    2020-12-01 06:21

    This allowed me to avoid Eclipse "Unresolved inclusion" error.

    In my case I had to find the location of the C++ vector header on my computer (which is a Mac):

    find /usr/local -name vector -print
    

    I found the correct include location in folder "/usr/include/c++/4.2.1". Then I set my project eclipse settings like so:

    Project->Properties->C/C++ General->Paths and Symbols->GNU C++->(Add)->"/usr/include/c++/4.2.1"
    

    I'm not using C++ Builder, but my solution might address part of your trouble.

提交回复
热议问题