Eclipse CDT complains about unresolved functions but still builds successfully

后端 未结 5 694
轮回少年
轮回少年 2021-01-18 07:26

The following C++ application compiles and runs successfully within Eclipse CDT but the IDE is still reporting an error stating:



        
5条回答
  •  孤城傲影
    2021-01-18 07:44

    The directory /usr/include (where wchar.h resides) is definitely listed within the Include path as otherwise the application would not compile

    I guess this directory is listed only in compiler Include path. This directory has to be listed in Eclipse C++ parser Include path as well, to resolve functions correctly.

提交回复
热议问题