在KEIL编译器是出现以下错误:
library\utilities\minishell\minishell.c(40): error: #29: expected an expression
library\utilities\minishell\minishell.c(41): error: #29: expected an expression
library\utilities\minishell\minishell.c(42): error: #29: expected an expression
library\utilities\minishell\minishell.c(43): error: #29: expected an expression
library\utilities\minishell\minishell.c(287): warning: #177-D: function "CommandFun_Help" was declared but never referenced
怎么改都改不对。当你郁闷不解时,现在救命草来了!
以下是一个解决方案:
首先 options for target —> c/c++ —> (在include path 后面一行)misc control 中加入" --c99 " 即可。