c++ - OpenMesh does not compile with min/max macros active -


how can deal error? add nominmax preprocessor definitions, dose not work. solution?

the error follows.

clcompile: 1>  tricall.c 1>  detected min macro! openmesh not compile min/max macros active! please add define nominmax compiler flags or add #undef min before including openmesh headers ! 1>d:\programfiles\c_library\openmesh3.2\include\openmesh\core\system\config.h(72): fatal error c1189: #error :  min macro active 

you should add

#ifdef min #undef min #endif 

and similar max before including openmesh headers.

some header not observing nominmax defining them.

if breaks other code relies on macros, use more complicated

#ifdef min #define foo min #undef min #endif /*openmesh includes here*/ #ifdef foo #define min foo #undef foo #endif 

where foo symbol of choosing.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -