报错:
myshell.c: In function ‘int doBuildin(char**)’:
myshell.c:91:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
path = ".";
解决方案:这个waring提示我c++11,也就是这里出错了,后来我改成了c99发现还是不行,原来是忘记q前面g++要改成gcc了
OK了
报错:
myshell.c: In function ‘int doBuildin(char**)’:
myshell.c:91:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
path = ".";
解决方案:这个waring提示我c++11,也就是这里出错了,后来我改成了c99发现还是不行,原来是忘记q前面g++要改成gcc了
OK了