Hi,
Yes, I tried to include the .dll files for different VS (2015 and 2019) but with no luck. Indeed, I previously installed the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 but every time I try to load the library I continue to get the following error message:
[...]
Failed to parse type '( __cdecl__ )) Reset (' original input '( __cdecl__ )) Reset ('
Found on line 83331 of input from line 858 of file C:\\Users\\Riccardo\\Desktop\\lexactivator-matlab-master\\lexactivator-matlab-master\\examples\\LexActivator.h
Error parsing argument for function __attribute__ function may be invalid.
*********
Error using loadlibrary
Building LexActivator_thunk_pcwin64 failed. Compiler output is:
C:\ProgramData\MATLAB\SupportPackages\R2020b\3P.instrset\mingw_w64.instrset\bin\gcc -I"C:\Program Files\MATLAB\R2020b\extern\include"
-fexceptions -fno-omit-frame-pointer -I"C:\Users\Riccardo\Desktop\lexactivator-matlab-master\lexactivator-matlab-master\examples"
-I"C:\Users\Riccardo\Desktop\lexactivator-matlab-master\lexactivator-matlab-master\examples" "LexActivator_thunk_pcwin64.c" -o
"LexActivator_thunk_pcwin64.dll" -shared
In file included from LexActivator_thunk_pcwin64.c:27:0:
C:\Users\Riccardo\Desktop\lexactivator-matlab-master\lexactivator-matlab-master\examples/LexActivator.h:341:132: error: expected ';', ','
or ')' before '=' token
LEXACTIVATOR_API int LA_CC GetLicenseMeterAttribute(CSTRTYPE name, uint32_t *allowedUses, uint32_t *totalUses, uint32_t *grossUses =
NULL);
^
LexActivator_thunk_pcwin64.c: In function 'int32':
LexActivator_thunk_pcwin64.c:33:41: error: expected declaration specifiers before ')' token
EXPORT_EXTERN_C int32_T int32(__cdecl__))SetProductFile(CSTRTYPEfilePathThunk(void fcn(),const char *callstack,int stacksize)
[...]
PS: I am using MATLAB 2020b with the compiler MinGW64 Compiler © and I would like to keep it because I will use it later on in the code I want to distribute (that part works). I also have installed MATLAB 2017b and I hope it’s not creating any conflict.