为什么uint会使用-std = c99消失?
发布时间:2020-12-14 03:58:55 所属栏目:Windows 来源:网络整理
导读:// Filename: test.c#include sys/types.hint main() { uint a; return 0;} 上面的代码能够使用gcc和clang编译,标准如gnu89或gnu99.换句话说,以下工作. $gcc test.c # for the default is std=gnu89$clang test.c # for the default is std=gnu99 但是,以下
// Filename: test.c #include <sys/types.h> int main() { uint a; return 0; } 上面的代码能够使用gcc和clang编译,标准如gnu89或gnu99.换句话说,以下工作. $gcc test.c # for the default is std=gnu89 $clang test.c # for the default is std=gnu99 但是,以下错误导致错误“未声明的uint”. $gcc -std=c99 test.c $clang -std=c99 test.c 有人可以解释为什么uint的定义在c99标准中消失了吗? 解决方法
因为C标准没有定义/要求类型uint.它很可能是编译器,系统或库特定的便利类型.不要使用它.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- win10安装CUDA CUDNN tensorflow-gpu
- Windows下nodejs环境配置
- windows-7 – 将用户升级到Win7.现在在保存文件或打开附件时
- windows-server-2003 – 将Active Directory从2003年移至20
- 通过System.Windows.Automation访问Chrome中的Silverlight窗
- windows – 文件扩展名.kt?这是什么类型的文件?
- windows-server-2008 – 我可以删除并重新添加一个已复制的
- 之前没有发生的Skype Bot OAuth错误
- Windows怎么查看苹果heic文件
- windows – 验证文件以进行测试