[mlpack-git] [mlpack] Error Compiling Triangular_kernel.hpp on Windows (#422)

Joseph Mariadassou notifications at github.com
Fri Mar 20 06:05:52 EDT 2015


#include <mlpack/core/kernels/triangular_kernel.hpp>

// Use Armadillo's C++ version detection.
#ifdef ARMA_USE_CXX11
  #define MLPACK_USE_CX11
#endif

#endif

// Clean up unfortunate Windows preprocessor definitions, even if this file was
// already included.  Use std::min and std::max!
#ifdef _WIN32
  #ifdef min
    #undef min
  #endif

  #ifdef max
    #undef max
  #endif

-------------------------------------
this must be done before including triangular_kernel.hpp not  after as is done in core.hpp


---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/422#issuecomment-83972470
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150320/99841793/attachment.html>


More information about the mlpack-git mailing list