Compilation Error with Cryptlex Library v2.5.1

Hi Support,

I’ve downloaded latest version of Cryptlex Library (v2.5.1), and try to use it in our apps, but unfortunately compilation goes errors, please please check on error message below:

… LexActivator.h:494:44: error: unknown type name ‘bool’
LEXACTIVATOR_API HRESULT LA_CC SetUserLock(bool userLock)

any comments?

It seems the C compiler you use does not support bool. In the LexActivator.h file please add the following at top:

#define __USE_C99_MATH

#include < stdbool.h >

yes, It’s working now.
thanks