
C语言
暮雪繁香
湖南大学信息科学与工程学院信息安全专业本科学
展开
-
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdepreca
Mac下编译一C语言代码出现如下错误: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] 解决办法: 将后缀名改为.cpp 完美解决 不过感觉有些瓜皮原创 2018-01-12 09:45:26 · 6804 阅读 · 1 评论 -
'for' loop initial declarations are only allowed in C99 mode
小问题,今天在自己的服务器上跑操作系统实验的时候出现了下面的小问题 使用gcc编译代码时报出 error: 'for' loop initial declarations are only allowed in C99 mode note: use option -std=c99 or -std=gnu99 to compile your code 的错误 这是因为在g原创 2018-01-08 19:52:22 · 2608 阅读 · 0 评论