From 38db8d899e6871c876e2d710a17a7a0680f494db Mon Sep 17 00:00:00 2001 From: conrad Date: Wed, 23 Apr 2025 14:08:11 +1000 Subject: [PATCH] add compile time warning --- include/armadillo_bits/config.hpp | 4 ++++ include/armadillo_bits/config.hpp.cmake | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/armadillo_bits/config.hpp b/include/armadillo_bits/config.hpp index 3548b91a..643f57f1 100644 --- a/include/armadillo_bits/config.hpp +++ b/include/armadillo_bits/config.hpp @@ -307,6 +307,10 @@ #pragma message ("WARNING: use of ARMA_BLAS_LONG_LONG in conjunction with ARMA_USE_WRAPPER is not supported") #endif +#if (defined(ARMA_BLAS_64BIT_INT) && defined(ARMA_USE_WRAPPER)) + #pragma message ("WARNING: use of ARMA_BLAS_64BIT_INT in conjunction with ARMA_USE_WRAPPER is not supported") +#endif + // for compatibility with earlier versions of Armadillo #if defined(ARMA_BLAS_LONG) || defined(ARMA_BLAS_LONG_LONG) #undef ARMA_BLAS_64BIT_INT diff --git a/include/armadillo_bits/config.hpp.cmake b/include/armadillo_bits/config.hpp.cmake index b2b9e6f0..ff5a0d9c 100644 --- a/include/armadillo_bits/config.hpp.cmake +++ b/include/armadillo_bits/config.hpp.cmake @@ -307,6 +307,10 @@ #pragma message ("WARNING: use of ARMA_BLAS_LONG_LONG in conjunction with ARMA_USE_WRAPPER is not supported") #endif +#if (defined(ARMA_BLAS_64BIT_INT) && defined(ARMA_USE_WRAPPER)) + #pragma message ("WARNING: use of ARMA_BLAS_64BIT_INT in conjunction with ARMA_USE_WRAPPER is not supported") +#endif + // for compatibility with earlier versions of Armadillo #if defined(ARMA_BLAS_LONG) || defined(ARMA_BLAS_LONG_LONG) #undef ARMA_BLAS_64BIT_INT