warningISOC11doesnotallowconversionfromstringliteraltoc
简书链接:warningISOC11doesnotallowconversionfromstringliteraltoc
文章字数:73,阅读全文大约需要1分钟
1 | warning: 'extern' is not permitted on a declaration of a type [-Wmissing-declarations] |
1 | warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings] |
1 |
|
今天使用xcode 5 直接声明一个char 字符串
char*str1=”1”;
网上 查了查 这个声明格式不支持gcc 编译器
1 |
|
if (Constant::hasExceptionAndIntercept(env, char[]{“kick fail “})) {
}
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 情迁博客!
评论