error , Symbol 'vector' could not be resolved

后端 未结 12 841
心在旅途
心在旅途 2021-01-04 00:34

I am using eclipse in linux to develop a c++ application and I am getting this editor annotation error \"Symbol \'vector\' could not be resolved\" from the following code

12条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 01:05

    Apparently vector belongs to C++ standard template library from MinGW perspective. so in addition to

     #include 
    

    Add

    using namespace std;
    

    after the header file inclusions.

提交回复
热议问题