Skip to content

undef STRICT macro which breaks libproj headers

Benjamin Buch requested to merge bebuch/vtk:fix-libproj-on-mingw into master

Without this I get a lot of errors like

In file included from /mnt/VTK-9.2.2/ThirdParty/libproj/vtklibproj/include/proj/io.hpp:41,
                 from /mnt/build/ThirdParty/libproj/vtk_libproj.h:41,
                 from /mnt/VTK-9.2.2/IO/NetCDF/vtkNetCDFCFWriter.cxx:34:
/mnt/VTK-9.2.2/ThirdParty/libproj/vtklibproj/include/proj/util.hpp:361:15: error: expected identifier before ',' token
  361 |         STRICT,
      |               ^
/mnt/VTK-9.2.2/ThirdParty/libproj/vtklibproj/include/proj/util.hpp:381:59: error: expected unqualified-id at end of input
  381 |                    Criterion criterion = Criterion::STRICT,
      |                                                           ^
/mnt/VTK-9.2.2/ThirdParty/libproj/vtklibproj/include/proj/util.hpp:389:78: error: expected unqualified-id at end of input
  389 |             const IComparable *other, Criterion criterion = Criterion::STRICT,
      |                                                                              ^

from multiple header files of libproj.

My setup is a Ubuntu 20.04 docker container with GCC 12.2 and MinGW 10.0.


Backport: paraview/release
Backport: release

Edited by Ben Boeckel

Merge request reports