Eclipse C++: Symbol 'std' could not be resolved

前端 未结 10 1168
刺人心
刺人心 2020-12-08 03:01

I am getting this error in the TestExecute.cpp -

\"Symbol \'std\' could not be resolved\"

CODE

#include 

        
10条回答
  •  悲&欢浪女
    2020-12-08 03:16

    For MinGW this worked for me:

    • Right click project, select Properties
    • Go to C/C++ General - Paths and Symbols - Includes - GNU C++ - Include directories
    • Select Add...
    • Select Variables...
    • Select MINGW_HOME and click OK
    • Click Apply and OK

    You should now see several MinGW paths in Includes in your project explorer.
    The errors may not disappear instantly, you may need to refresh/build your project.


    If you are using Cygwin, there could be an equivalent variable present.

提交回复
热议问题