c++ - 标识符 uint8_t 未定义 - Visual Studio 2017

标签 c++ visual-studio-2017 uint8t type-definition

<分区>

我收到类型定义错误。 我正在使用 Visual Studio 2017,因此我将 stdint.h 包含在类型定义中。但我仍然遇到标识符 uint8_t 未定义的问题。

有什么问题?

最佳答案

它在“stdint.h”中定义,将其添加到您的 cpp 文件的顶部:

#include <stdint.h>

关于c++ - 标识符 uint8_t 未定义 - Visual Studio 2017,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50346142/

相关文章:

c++ - 我怎样才能找到这个数组中的最高值和最低值?

c++ - C++ 数据结构对象的生命周期是多少?

git - 如何更改“团队资源管理器”选项卡的 "Commit All"按钮

visual-studio - VS2017 中 Web Site 项目的 "Property Pages"选项存储在哪里?

c++ - 将 uint8 的 vector 转换为字符串

ios - Int 不能转换为 UInt8?

c++ - 封装 boost::random 以便于替换 rand()

visual-studio-2017 - 请选择有效的启动项

Javascript快速读取本地文件到UInt8Array

c++ - C++ 模板函数是线程安全的吗?