Eclipse CDT: Unresolved inclusion of stl header

后端 未结 4 1688
感动是毒
感动是毒 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:31

    On Windows, with Eclipse CDT Oxygen, none of the solutions described here worked for me (including the "Provider" - "CDT GCC Built-in Compiler Settings"). What works for me is:

    • Install Cygwin, with notably the following packages (maybe not all are strictly needed for this):
      • libgcc1
      • cygwin32-gcc-core, cygwin32-gcc-g++
      • gcc-g++
      • mingw64-x86_64-gcc-core, mingw64-x86_64-gcc-g++
    • In Project Properties:
      • Go to "C/C++ Build" - "Tool Chain Editor" and select "Cygwin GCC" as the "Current toolchain":
      • Go to "C/C++ General" - "Preprocessor Include Paths, Macors etc.", in the "Providers" tab, select:
        • "CDT Users Setting Entries" (I need them for other includes, such as the Google Test ones, which I manually referenced);
        • "CDT GCC Built-in Compiler Settings Cygwin".

提交回复
热议问题