Project

General

Profile

Strange error when installing cdo

Added by Arthur Chaves de Paiva Neto about 6 years ago

Hello everyone. I am trying to install cdo 1.9.4 but I have problem and I do not know what is happening. the error below occurred when I tried to compile the cdo. Has anyone ever experienced this? I am sending config.log attached.

/bin/sh ../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../libcdi/src -DgFortran -g -O2 -fopenmp -MT libcdo_la-cdo_vlist.lo -MD -MP -MF .deps/libcdo_la-cdo_vlist.Tpo -c -o libcdo_la-cdo_vlist.lo `test -f 'cdo_vlist.cc' || echo './'`cdo_vlist.cc
libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../libcdi/src -DgFortran -g -O2 -fopenmp -MT libcdo_la-cdo_vlist.lo -MD -MP -MF .deps/libcdo_la-cdo_vlist.Tpo -c cdo_vlist.cc -fPIC -DPIC -o .libs/libcdo_la-cdo_vlist.o
In file included from process.h:21:0,
from process_int.h:21,
from cdo_int.h:45,
from cdo_vlist.cc:19:
pstream.h:85:3: error: ‘shared_ptr’ in namespace ‘std’ does not name a type
std::shared_ptr<pipe_t> pipe;
^
make2: * [libcdo_la-cdo_vlist.lo] Error 1
make2: Leaving directory `/srv/rotinas/cdo/cdo-1.9.4rc2/src'
make1:
[all] Error 2
make1: Leaving directory `/srv/rotinas/cdo/cdo-1.9.4rc2/src'
make: *
* [all-recursive] Error 1


Replies (2)

RE: Strange error when installing cdo - Added by Uwe Schulzweida about 6 years ago

Thanks for the information. It works on our systems but it seems that there is an include statement missing. Could you please replace the file src/pstream.h with the attached one and try it again?

Cheers,
Uwe

pstream.h (2.79 KB) pstream.h

RE: Strange error when installing cdo - Added by Arthur Chaves de Paiva Neto about 6 years ago

Hi Uwe, thanks for the reply. It worked perfectly :) .

Thank you very much.

regards,
Arthur.

    (1-2/2)