Dear GSL,

I recently needed to modify my code to include a definition for size_t,
via #include <cstddef> as this was not available on a Debian Sid
builder, when using gsl_spmatrix.h [1].

I believe more recent versions of GCC have been reducing the header
scope, as this builds on Debian stable and testing without any
difficulties. I have not spun up a sid image to be able to do test this
locally, as this occurred within a cowbuilder environment.


diff --git a/src/backend/filters/spatialAnalysis.cpp
b/src/backend/filters/spatialAnalysis.cpp
index 2453cbe..91faebf 100644
--- a/src/backend/filters/spatialAnalysis.cpp
+++ b/src/backend/filters/spatialAnalysis.cpp
@@ -15,6 +15,10 @@
  *     You should have received a copy of the GNU General Public License
  *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
+
+//GSL_spmatrix seems to be missing size_t definition
+#include <cstddef>
+
 #include <gsl/gsl_sf_gamma.h>
 #include <gsl/gsl_spmatrix.h>



[1]
https://salsa.debian.org/science-team/3depict/-/raw/master/debian/patches/patch_gsl_spmatrix_size_t

Reply via email to