Eclipse C/C++ Shows Errors but Compiles?

前端 未结 9 1227
我寻月下人不归
我寻月下人不归 2020-12-15 17:27

So I am building some Arduino code in eclipse, as described in Your Second Arduino Project, but every time I use an Arduino library, such as Serial, Eclipse und

9条回答
  •  醉梦人生
    2020-12-15 17:58

    The solution below worked for me: Click to your project using right click. Then: Properties -> C/C++ General -> Paths and Symbols -> Symbols -> GNU C++. Almost for sure there are no symbols at all if you have this problem. Add symbol "__cplusplus" with value "201402L" After this: Right click on Project -> Index -> Rebuild You are done.

提交回复
热议问题