Project

General

Profile

cdo compile fail for pipe.c

Added by michael bane almost 11 years ago

Hi all
I've netcdf and grip_api built previously but when I try and compile cdo using the Intel compilers I get the error

make2: Entering directory `/opt/gridware/apps/intel-12.0/cdo/build/cdo-1.6.1rc6/src'
icc -std=c99 -DHAVE_CONFIG_H -I. -I../libcdi/src -I/software/apps/intel-12.0/cdo/grib_api/dest/include -I/opt/gridware/libs/intel-11.1/netcdf/4.1.2/include -g -O2 -pthread -MT cdo-pipe.o -MD -MP -MF .deps/cdo-pipe.Tpo -c -o cdo-pipe.o `test -f 'pipe.c' || echo './'`pipe.c
pipe.c(175): error: incomplete type is not allowed
struct timespec time_to_wait;
^

compilation aborted for pipe.c (code 2)
make2: *** [cdo-pipe.o] Error 2


Replies (1)

RE: cdo compile fail for pipe.c - Added by Uwe Schulzweida almost 11 years ago

Hi Michael,

It seems that your C compiler isn't POSIX.1 conform. Please try it with a more recent icc version. I have not problems with icc version 12.1.5.

Cheers,
Uwe

    (1-1/1)