Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/61.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ubuntu(linux)中的SIZEOF_UNSIGNED_CHAR头文件或包?_C_Linux_Header Files - Fatal编程技术网

ubuntu(linux)中的SIZEOF_UNSIGNED_CHAR头文件或包?

ubuntu(linux)中的SIZEOF_UNSIGNED_CHAR头文件或包?,c,linux,header-files,C,Linux,Header Files,我使用ubuntu 20.04,当我编译代码头文件时,我有一个错误: ../../../../../../src/tool/omniidl/cxx/cccp/config.h:80:23: error: ‘SIZEOF_UNSIGNED_CHAR’ undeclared (first use in this function) 80 | #define BITS_PER_UNIT SIZEOF_UNSIGNED_CHAR 我只想知道哪个头文件或哪个Linux包包含定义的SIZEOF_UN

我使用ubuntu 20.04,当我编译代码头文件时,我有一个错误:

../../../../../../src/tool/omniidl/cxx/cccp/config.h:80:23: error: ‘SIZEOF_UNSIGNED_CHAR’ undeclared (first use in this function)
   80 | #define BITS_PER_UNIT SIZEOF_UNSIGNED_CHAR

我只想知道哪个头文件或哪个Linux包包含定义的SIZEOF_UNSIGNED_CHAR?

它是1,因为它是可以使用的最小单位。如果您不想编写
#定义。。。1
您可以使用
sizeof


我建议您阅读,这是一个有趣的页面。

不确定这是否是一个标准宏,但通常它被定义为
1
。我怀疑您会发现在任何Linux软件包中,C中所有
char
类型的大小都是一个定义,因此这样的宏定义是完全不必要的。您需要找出编译所依赖的内容。它似乎是特定软件包(omniORB)中配置脚本的产物。您应该按照软件包文档中的说明操作。看起来像Microsoft类型。你想编译什么?