'NULL' was not declared in this scope
时间: 2023-10-21 16:04:16 浏览: 233
适用于Ubuntu 20.04的opencv-3.3.1资源
5星 · 资源好评率100%
This error message typically occurs when the compiler encounters the keyword 'NULL' in the code, but it doesn't recognize it as a valid identifier. This can happen when the necessary header file is not included or when the code is written in a language that doesn't support the 'NULL' keyword.
To fix this error, try including the necessary header file(s) or replacing the 'NULL' keyword with an equivalent value that is recognized by the programming language you are using. For example, in C++, you can replace 'NULL' with 'nullptr' or '0'.
阅读全文