PC-lint64 cannot find the definition for uint64_t

PC-lint Plus User Discussion
Post Reply
marjonz

PC-lint64 cannot find the definition for uint64_t

Post by marjonz »

I am using a variable of type

Code: Select all

uint64_t
, but running pc-lint64 on the project reports:

Code: Select all

error 40: undeclared identifier 'uint64_t' [MISRA 2012 Rule 1.3, required]
How can I fix this please?
Michael Metivier

Re: PC-lint64 cannot find the definition for uint64_t

Post by Michael Metivier »

Your PC-Lint configuration has a path to a header that includes this definition?
Is that definition protected by a preprocessor directive?
If so, have you made PC-Lint aware of this preprocessor directive using the -d option?

Have you checked the "-p" option to have PC-Lint output what it sees during its preprocessing phase?
Does that preprocessing output include a definition for uint64_t? If not you'll need to track down why in your system headers.
Post Reply