This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#error fix this 这是什么错误,怎么解决?

  • 这个没使用过,共同学习了。看到对#error命令的解释是这样的:#error命令是C/C++语言的预处理命令之一,当预处理器预处理到#error命令时将停止编译并输出用户自定义的错误消息。其目的就是保证程序是按照你所设想的那样进行编译的。
    那遇到时防止编译报错就可以屏蔽掉了。