'uint32_t'不命名类型 [英] 'uint32_t' does not name a type
本文介绍了'uint32_t'不命名类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图编译一个C ++软件包是在2007年写的,我得到这个错误:
I'm trying to compile a C++ software package that was written in 2007 and I'm getting this error:
错误: uint32_t'不命名类型
这是发生在64位Ubuntu使用g ++ 4.5.2。它使用g ++ 4.1.2在64位CentOS上编译良好。
This is happening in 64-bit Ubuntu using g++ 4.5.2. It compiles fine on 64-bit CentOS using g++ 4.1.2.
是否有 #include
国旗我失踪了?或者,我应该使用 typedef
将 uint32_t
分配给 size_t
或者 unsigned int
?
Is there an #include
or a compiler flag that I'm missing? Or, should I use typedef
to assign uint32_t
to a size_t
or maybe an unsigned int
?
推荐答案
.h
#include <stdint.h>
这篇关于'uint32_t'不命名类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文