Cryptlex Forums

Compilation Error with Cryptlex Library v2.5.1

Y
Yogi Hardi

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?

C
Cryptlex Support

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 >

Y
Yogi Hardi

yes, It’s working now.
thanks

← Back to all topics · 3 posts · 792 views · opened 2016-12-29