【发布时间】:2021-11-24 15:00:26
【问题描述】:
我正在尝试使用 PGI 安装 NetCDF。但是,为此,我首先需要安装 zlib,当我尝试这样做时,我会这样做:
export C_INCLUDE_PATH=/the/path/to/include/:$C_INCLUDE_PATH
export PATH=/the/path/to/compilers/bin/:$PATH
那我试试:
CC=pgcc CXX=pgc++ ./configure --archs="x86_64"
我收到以下错误:
Building shared library libz.so.1.2.11 with pgcc.
Checking for size_t... No.
Checking for long long... Yes.
Failed to find a pointer-size integer type.
** ./configure aborting.```
The **configure.log** says, among other things:
```pgcc -c -O3 x86_64 ztest212261.c
ztest212261.c:
"/usr/include/stdio.h", line 183: error: attribute "__malloc__" does not take arguments
__attribute_malloc__ __attr_dealloc_fclose __wur;
有人可以给我一个提示吗? 提前谢谢你。
【问题讨论】: