Menu

NetBeans with VCC4N marks "Unable to resolve identifier 'std'"

2012-11-07
2013-08-14
  • Paul A Bristow

    Paul A Bristow - 2012-11-07

    I am using Netbeans 7.2 with NCC4N v 0.2 to allow compiling the same code with Cygwin, Clang, Mingw gcc 4.6, Mingw32 gcc 4.7 and VS 10 - excellent to check C++ code for portability.

    But I note that the display, for example of welcome.cc, shows errors (lots of red blobs with !) for all mentions of 'std'. For example:

    #include < iostream >

    int main(int argc, char**argv)
    {
    std::cout << "Welcome ..." << std::endl;
    return 0;
    }

    builds and runs fine. Excellent!

    But it is very annoying reading the code - you can't tell 'real' errors from these zillions of 'red herrings'.

    Is there some include or other setting that I am missing.

    I've tried adding C:/Program Files/Microsoft Visual Studio 10.0/VC/include but this doesn't help the parser.

     
    • Maxime Viargues

      Maxime Viargues - 2012-11-08

      Hello,

      Thanks for reporting the bug. That's actually a known issue.
      It seems that the parser doesn't use the same includes as the project and also doesn't find the std in the standard libraries.

      I have logged a ticket and will have a look this week end.

       

      Last edit: Maxime Viargues 2012-11-08
  • Maxime Viargues

    Maxime Viargues - 2013-01-20

    It has been fixed and will be available in the next release (not sure exactly when).

     
    • Anonymous

      Anonymous - 2013-08-14

      hi! i`ve installed 0.3.1Beta version of VCC4N, but this bug still have not fixed

       
    • alex

      alex - 2013-08-14

      Hi! I have installed 0.3.1 version of VCC4N but this bug have not been fixed.

       
      • Anonymous

        Anonymous - 2013-08-14

        That's weird because I am pretty sure it's fixed. I know few of them may still be red, like with shared_ptr for example, but std should not be red.
        Netbeans should have told you something like "Code assitance has change, do you want to update it".
        Check on Tools > Options > C++, Select VCC4N then click on CodeAssistance tab > C++ Compiler tab
        On Macro definitions you should have 18 lines. If not then it's not updated correctly. Try to recreate the VCC4N Tool Collection, they should appear then.

         
  • Punsher2011

    Punsher2011 - 2013-05-24

    Hi .
    i am using 7.3 version .. and i can't compile because it ask me what is the "make command" .
    i don't know what to do ?

     

Anonymous
Anonymous

Add attachments
Cancel