gpt4 book ai didi

visual-c++ - 意外错误 C2632 : 'char' followed by 'char' is illegal

转载 作者:行者123 更新时间:2023-12-02 10:40:49 26 4
gpt4 key购买 nike

我有一段代码作为

    typedef unsigned char   _uint8;
typedef unsigned short _uint16;
typedef unsigned int _uint32;
typedef float _float32;

typedef char _int8;
typedef short _int16;
typedef int _int32;

我在最后三行中的行中遇到错误

错误信息是

error C2632: 'char' 后跟 'char' 是非法的
error C2632: 'short' 后跟 'short' 是非法的

error C2632: 'int' 后跟 'int' 是非法的

最佳答案

在您的代码尝试这样做之前,这些类型已经通过 typedef(可能)或 #define(更有可能)创建;查看预处理器输出(如果 Visual-C++ 可能的话)可能会帮助您找出原因。

关于visual-c++ - 意外错误 C2632 : 'char' followed by 'char' is illegal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18449296/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com