Project

General

Profile

Make error: qualifiers cannot be applied to 'float'

Added by Jana Doubalova over 6 years ago

Hi everyone.

I'm trying to compile CDO on our machine. The ./configure part works fine, but when I do "make", it throws an error at the end

make[2]: Entering directory `/storage/home/doubalova/cdo-1.9.2rc2/src'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../libcdi/src -I/usr/include -I/usr/include -DgFortran -g -O2 -fopenmp -MT libcdo_la-grid_search.lo -MD -MP -MF .deps/libcdo_la-grid_search.Tpo -c -o libcdo_la-grid_search.lo `test -f 'grid_search.cc' || echo './'`grid_search.cc
libtool: compile: g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../libcdi/src -I/usr/include -I/usr/include -DgFortran -g -O2 -fopenmp -MT libcdo_la-grid_search.lo -MD -MP -MF .deps/libcdo_la-grid_search.Tpo -c grid_search.cc -fPIC -DPIC -o .libs/libcdo_la-grid_search.o
grid_search.cc: In function 'nfTree_t* gs_create_nanoflann(size_t, const double*, const double*, gridsearch*)':
grid_search.cc:181:25: error: '__restrict__' qualifiers cannot be applied to 'float'
float restrict point[3];
^
make[2]: *** [libcdo_la-grid_search.lo] Error 1

Does anybody have any idea how to fix this?


Replies (2)

RE: Make error: qualifiers cannot be applied to 'float' - Added by Uwe Schulzweida over 6 years ago

Please remove the restrict keyword in file src/grid_search.cc line 181.

RE: Make error: qualifiers cannot be applied to 'float' - Added by Jana Doubalova over 6 years ago

That was easier than I expected :-)
Thank you!

    (1-2/2)