This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pc lint error of include file

Running PC-Lint...
PC-lint for C/C++ (NT) Ver. 8.00o, Copyright Gimpel Software 1985-2004
C:\StellarisWare2\boards\rdk-s2e\ser2enet\config.c(25,9): Error 322: Unable to open include file 'string.h'

Parents Reply Children
  • Oh come on. Compiler finds the file, lint doesn't.

  • Provide solution properly<i/>

    Do you have a Ghadaffi complex?

  • i am first time use pc lint ,having no too much idea

  • i am first time use pc lint ,having no too much idea

    So, as a Keil forum user, I would suggest you read the documentation that comes with lint.

  • How do you think the compiler manages to find it?

    Have you made similar arrangements to allow Lint to find it?

  • Thanks

    it work well
    but it shows error even stdio file even i included path

    like
    C:\keil2\ARM\RV31\INC\stdio.h(183,53): Error 10: Expecting ';'
    C:\keil2\ARM\RV31\INC\stdlib.h(75,45): Error 129: declaration expected, identifier 'div_t' ignored
    C:\keil2\ARM\RV31\INC\stdlib.h(75,45): Error 19: Useless Declaration
    C:\keil2\ARM\RV31\INC\stdlib.h(137,50): Error 10: Expecting ';'
    C:\keil2\ARM\RV31\INC\stdlib.h(591,59): Error 129: declaration expected, identifier '__sdiv32by16' ignored
    C:\keil2\ARM\RV31\INC\stdlib.h(591,59): Error 19: Useless Declaration
    C:\keil2\ARM\RV31\INC\stdlib.h(596,49): Error 10: Expecting ';'
    C:\keil2\ARM\RV31\INC\stdlib.h(598,25): Error 19: Useless Declaration
    C:\keil2\ARM\RV31\INC\stdlib.h(667,34): Error 10: Expecting ',' or ')'
    C:\keil2\ARM\RV31\INC\stdlib.h(668,63): Error 101: Expected an identifier
    C:\keil2\ARM\RV31\INC\stdlib.h(668,63): Error 132: Expected function definition
    C:\keil2\ARM\RV31\INC\stdlib.h(686,40): Error 49: Expected a type
    C:\keil2\ARM\RV31\INC\stdlib.h(708,39): Error 10: Expecting ',' or ')'
    C:\keil2\ARM\RV31\INC\stdlib.h(709,80): Error 10: Expecting ',' or ')'

  • What shows error?

    What have you done to investigate those errors?

  • just a quick suggestion

    go to C:\Keil\ARM\BIN assuming you havent change the installation location and use the CO_RV.LNT file from there rather than use the C0RV.LNT from the gimpel or Keil website.

    Doing this removed more of the warning for me generated by the #include <*.h> files than trying to set up paths etc

  • I'm having the same issue here.

    My setup is PC-Lint 9.


    C:\Keil\ARM\RV31\INC\string.h(50,66): Error 10: Expecting ';'
    C:\Keil\ARM\RV31\INC\string.h(50,99): Error 161: Repeated use of parameter '__restrict' in parameter list
    C:\Keil\ARM\RV31\INC\stdio.h(76,8): Error 129: declaration expected, identifier 'fpos_t' ignored
    C:\Keil\ARM\RV31\INC\stdio.h(76,8): Error 19: Useless Declaration
    C:\Keil\ARM\RV31\INC\stdio.h(183,53): Error 10: Expecting ';'
    ...

    I click on the first error, and it leads me to the <string.h>, default header file of RV


    extern _ARMABI void *memcpy(void * __restrict /*s1*/, const void * __restrict /*s2*/, size_t /*n*/) __attribute__((__nonnull__(1,2)));

    I assume that Lint doesn't like the "__attribute__" , "__restrict" things.

    Do you have any suggestion?

    Thank you and Best regards,

    Huy