Netbeans 7.2 shows “Unable to resolve identifier” , although build is successful

后端 未结 11 539
野的像风
野的像风 2020-11-28 21:54

I\'m using the Netbeans IDE 7.2 with C/C++ plugin (last version 1.18.1.1) and if I build my project everything is fine but the IDE show me

11条回答
  •  渐次进展
    2020-11-28 22:04

    Three ways to solve the issue of "unable to resolve identifier" error in Netbeans 12.

    1. Right click on "Project". Select "Code Assistance". Clean C/C++ cache. Restart IDE.
    2. Right click "Project properties"---> go to build--> under C/c++ compiler, set both your C and C++ compiler to the same standard, on every C/C++ project.
    3. Under tools--> options--> C/C++-->code assistance, change:__cplusplus=199711L to:__cplusplus=201402L for C++14 or to __cplusplus=201103L for C++11

    I realised while resolving my own problem, the proper/aligned enclosing braces could cause the above error. Make sure your braces are balanced and aligned.

提交回复
热议问题