[gdal-dev] Error linking srsinfo in 3.9.1 (rc1 or rc2)
Greg Troxel
gdt at lexort.com
Mon Jun 24 11:20:17 PDT 2024
Scott via gdal-dev <gdal-dev at lists.osgeo.org> writes:
> #include_next is part of the c++ version 12. You can find it's usage
> here on debian 12:
>
> /usr/include/c++/12/cstdlib, line 75
I think that's gcc 12, not C++12 which is not a thing :-)
It being used in an internal header supplied by the compiler is one
thing. I do not understand how an include of stdlib in a user program
can do that sensibly. It's supposed to mean that only things in the
include path after this file that was found, are to be searched.
That's very tricky and requires assumptions/checks about the include
order, and cmake does not seem to guarantee a lot in that department.
More information about the gdal-dev
mailing list