[gdal-dev] Build failed with "cannot deduce template arguments" error
Fengting Chen
fengting.chen at oracle.com
Tue Apr 29 14:18:28 PDT 2025
Hi, I am trying to build GDAL from the master branch, but got the following error:
[ 46%] Building CXX object alg/CMakeFiles/alg.dir/gdal_interpolateatpoint.cpp.o
In file included from /scratch/gdal/gdal/alg/gdal_interpolateatpoint.cpp:20:
/scratch/gdal/gdal/gcore/gdal_vectorx.h: In member function ?~@~Xgdal:: VectorX<T, N>::self_type gdal::VectorX<T, N>::operator+(T) const?~@~Y:
/scratch/gdal/gdal/gcore/gdal_vectorx.h:173:44: error: cannot deduce template arguments for ?~@~Xplus?~@~Y from ()
return operatorImpl(arg, std::plus());
^
My configuration is:
-- Target system: Linux
-- Installation directory: /usr/local
-- C++ Compiler type: GNU
-- C compile command line: /bin/cc
-- C++ compile command line: /bin/c++
--
-- CMAKE_C_FLAGS: -fvisibility=hidden
-- CMAKE_CXX_FLAGS: -fvisibility=hidden
-- CMAKE_CXX17_STANDARD_COMPILE_OPTION: -std=c++17
-- CMAKE_CXX17_EXTENSION_COMPILE_OPTION: -std=gnu++17
-- CMAKE_EXE_LINKER_FLAGS:
-- CMAKE_MODULE_LINKER_FLAGS: -Wl,--no-undefined
-- CMAKE_SHARED_LINKER_FLAGS: -Wl,--no-undefined
-- CMAKE_STATIC_LINKER_FLAGS:
Any idea on how to fix the error?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250429/fbfc93fb/attachment.htm>
More information about the gdal-dev
mailing list