MATLAB Answers

Error in mex (line 206) please help

10 views (last 30 days)
Mahua
Mahua on 4 Sep 2013
Answered: Steve on 27 Jan 2015
>> mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2013a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? y
No supported SDK or compiler was found on this computer. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2013a/win64.html
Error using mex (line 206) Unable to complete successfully.
>> mex -setup
Welcome to mex -setup. This utility will help you set up a default compiler. For a list of supported compilers, see http://www.mathworks.com/support/compilers/R2013a/win64.html
Please choose your compiler for building MEX-files:
Would you like mex to locate installed compilers [y]/n? n
Select a compiler: [1] Intel C++ 13.0 (with Microsoft Software Development Kit (SDK) linker) [2] Intel C++ 13.0 (with Microsoft Visual C++ 2010 linker) [3] Intel C++ 13.0 (with Microsoft Visual C++ 2012 linker) [4] Intel C++ 12.0 (with Microsoft Software Development Kit (SDK) linker) [5] Intel C++ 12.0 (with Microsoft Visual C++ 2008 SP1 linker) [6] Intel C++ 12.0 (with Microsoft Visual C++ 2010 linker) [7] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [8] Intel Visual Fortran 13 (with Microsoft Software Development Kit (SDK) linker) [9] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2010 linker) [10] Intel Visual Fortran 13.0 (with Microsoft Visual C++ 2012 linker) [11] Intel Visual Fortran 12 (with Microsoft Software Development Kit (SDK) linker) [12] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 SP1 linker) [13] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2008 Shell linker) [14] Intel Visual Fortran 12.0 (with Microsoft Visual C++ 2010 linker) [15] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker) [16] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker) [17] Microsoft Software Development Kit (SDK) 7.1 [18] Microsoft Visual C++ 2005 SP1 [19] Microsoft Visual C++ 2008 SP1 [20] Microsoft Visual C++ 2010 [21] Microsoft Visual C++ 2012
[0] None
Compiler: 17
Warning: The default location for Microsoft Software Development Kit (SDK) compiler is: "C:\Program Files (x86)\Microsoft Visual Studio 10.0" but either that directory does not exist or the configuration is invalid.
Use C:\Program Files (x86)\Microsoft Visual Studio 10.0 anyway [y]/n? y
Please verify your choices:
Compiler: Microsoft Software Development Kit (SDK) 7.1 Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
Are these correct [y]/n? y
*************************************************************************** Error: The Microsoft Windows Software Development Kit (SDK) installation is incomplete. Please be sure that the .NET Framework is installed correctly before attempting to reinstall the SDK. ***************************************************************************
Error using mex (line 206) Unable to complete successfully.
please suggest what to do.

  2 Comments

Walter Roberson
Walter Roberson on 4 Sep 2013
Is it correct to give a Visual Studio directory name for SDK 7.1 ? Does the directory C:\Program Files (x86)\Microsoft Visual Studio 10.0 exist?
Friedrich
Friedrich on 4 Sep 2013
Yes thats correct (assuming a default installation of SDK 7.1). If mex can find it you will see this:
mex -setup
Welcome to mex -setup. This utility will help you set up
a default compiler. For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2013b/win64.html
Please choose your compiler for building MEX-files:
y
Would you like mex to locate installed compilers [y]/n?
Select a compiler:
[1] Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
[0] None
Compiler: 1
Please verify your choices:
Compiler: Microsoft Software Development Kit (SDK) 7.1
Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
If mex cant find it then something is missing from your SDK installation.

Sign in to comment.

Accepted Answer

Friedrich
Friedrich on 4 Sep 2013
Hi,
run the following code and post the output here:
disp('OS')
disp('=====================================')
system_dependent('getos')
disp('=====================================')
disp('OS version')
disp('=====================================')
system_dependent('getwinsys')
disp('=====================================')
disp('SDK registry check')
disp('=====================================')
try
tmp = winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1' , 'InstallationFolder')
disp('=====================================')
disp('MT.exe')
disp('=====================================')
disp(exist([tmp,'\bin\mt.exe']))
disp('=====================================')
catch
disp('not found')
end
disp('VS 2010 Pro registry check')
disp('=====================================')
try
winqueryreg('HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS','ProductDir')
catch
disp('not found')
end
disp('=====================================')
disp('VS ENV')
disp('=====================================')
env = getenv('VS100COMNTOOLS')
disp('=====================================')
if ~isempty(env)
disp('64bit CL.exe')
disp('=====================================')
disp(exist([env,'\\..\\..\\VC\bin\amd64\cl.exe']))
disp('=====================================')
disp('32bit CL.exe')
disp('=====================================')
disp(exist([env,'\\..\\..\\VC\bin\cl.exe']))
disp('=====================================')
end

  8 Comments

Show 5 older comments
Elisa
Elisa on 10 Nov 2013
Thanks friedrich for explain me that!!!
My concern with the compiler is because I'm desperately trying to make work the EmotivEEG tool box from the file exchange.
I selected the compiler as I told me but still it looks like it doesn't work. I don't know if you can help me with that. This is the error:
>> EmotivEEG
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********
Failed to parse type 'char * strDevID = " Emotiv Systems - 5 "' original input 'const char * strDevID = " Emotiv Systems - 5 "'
Found on line 292 of input from line 223 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Error parsing argument for function EE_EngineConnect function may be invalid.
Type 'intEMOSTATE_DLL_APIEmoStateHandle' was not found. Defaulting to type error.
Found on line 1290 of input from line 1221 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1300 of input from line 1231 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1308 of input from line 1239 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1320 of input from line 1251 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1331 of input from line 1262 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1340 of input from line 1271 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIEE_EEG_ContactQuality_t' was not found. Defaulting to type error.
Found on line 1351 of input from line 1282 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1371 of input from line 1302 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'EE_EEG_ContactQuality_tPtr' was not found. Defaulting to type voidPtr.
Found on line 1371 of input from line 1302 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'size_t' was not found. Defaulting to type error.
Found on line 1371 of input from line 1302 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1380 of input from line 1311 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1390 of input from line 1321 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1400 of input from line 1331 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1409 of input from line 1340 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1419 of input from line 1350 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1429 of input from line 1360 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1439 of input from line 1370 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1449 of input from line 1380 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1463 of input from line 1394 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1484 of input from line 1415 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1494 of input from line 1425 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1504 of input from line 1435 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1514 of input from line 1445 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIEE_ExpressivAlgo_t' was not found. Defaulting to type error.
Found on line 1525 of input from line 1456 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1535 of input from line 1466 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIEE_ExpressivAlgo_t' was not found. Defaulting to type error.
Found on line 1545 of input from line 1476 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1555 of input from line 1486 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1566 of input from line 1497 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1576 of input from line 1507 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1586 of input from line 1517 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1597 of input from line 1528 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1605 of input from line 1536 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1613 of input from line 1544 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1621 of input from line 1552 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIEE_CognitivAction_t' was not found. Defaulting to type error.
Found on line 1631 of input from line 1562 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIfloat' was not found. Defaulting to type error.
Found on line 1641 of input from line 1572 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1649 of input from line 1580 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIEE_SignalStrength_t' was not found. Defaulting to type error.
Found on line 1660 of input from line 1591 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1669 of input from line 1600 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1680 of input from line 1611 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1691 of input from line 1622 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1702 of input from line 1633 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1716 of input from line 1647 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_API' was not found. Defaulting to type error.
Found on line 1727 of input from line 1658 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
Type 'intEMOSTATE_DLL_APIvoid' was not found. Defaulting to type error.
Found on line 1736 of input from line 1667 of file \\stf1\\stf1\\USERS\\E\\ecapecci\\Data\\MATLAB\\ML_ec\\EmotivToolBox_onlineAvailable\\edk.h
*********
Warning: The following error was caught while executing 'EmotivEEG' class
destructor:
Library was not found
Error using loadlibrary (line 419)
Building edk_thunk_pcwin64 failed. Compiler output is:
cl -I"C:\Program Files\MATLAB\R2012b\extern\include" /W3
/D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0
/nologo -I"\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB"
-I"\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable"
"edk_thunk_pcwin64.c" -LD -Fe"edk_thunk_pcwin64.dll"
edk_thunk_pcwin64.c
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(45)
: error C2059: syntax error : 'string'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(140)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(147)
: error C2061: syntax error : identifier 'EE_CognitivTrainingControl_t'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(147)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(174)
: error C2061: syntax error : identifier 'EE_Event_t'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(174)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(223)
: error C2143: syntax error : missing ')' before '='
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(223)
: error C2072: 'EE_EngineConnect' : initialization of a function
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(223)
: error C2059: syntax error : ')'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(316)
: error C2061: syntax error : identifier 'EE_EmoEngineEventGetType'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(316)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(316)
: error C2059: syntax error : 'type'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(738)
: error C2146: syntax error : missing ')' before identifier 'control'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(738)
: error C2081: 'EE_CognitivTrainingControl_t' : name in formal parameter
list illegal
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(738)
: error C2061: syntax error : identifier 'control'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(738)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(738)
: error C2059: syntax error : ')'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1221)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1221)
: error C2085: 'ES_Create' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1231)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1239)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1239)
: error C2085: 'ES_Init' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1251)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1262)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1262)
: error C2085: 'ES_GetHeadsetOn' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1271)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1282)
: error C2061: syntax error : identifier 'EE_EEG_ContactQuality_t'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1282)
: error C2059: syntax error : ';'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2143: syntax error : missing ')' before '*'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2081: 'EE_EEG_ContactQuality_t' : name in formal parameter list
illegal
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2085: 'ES_GetContactQualityFromAllChannels' : not in formal
parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2143: syntax error : missing ';' before '*'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1302)
: error C2059: syntax error : ')'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1311)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1311)
: error C2085: 'ES_ExpressivIsBlink' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1321)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1331)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1331)
: error C2085: 'ES_ExpressivIsRightWink' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1340)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1350)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1350)
: error C2085: 'ES_ExpressivIsLookingUp' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1360)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1370)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1370)
: error C2085: 'ES_ExpressivIsLookingLeft' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1380)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1394)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1394)
: error C2085: 'ES_ExpressivGetEyelidState' : not in formal parameter
list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1415)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1425)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1425)
: error C2085: 'ES_ExpressivGetEyebrowExtent' : not in formal parameter
list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1435)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1445)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1445)
: error C2085: 'ES_ExpressivGetClenchExtent' : not in formal parameter
list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1456)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1466)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1466)
: error C2085: 'ES_ExpressivGetUpperFaceActionPower' : not in formal
parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1476)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1486)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1486)
: error C2085: 'ES_ExpressivGetLowerFaceActionPower' : not in formal
parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1497)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1507)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1507)
: error C2085: 'ES_AffectivGetExcitementLongTermScore' : not in formal
parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1517)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1528)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1528)
: error C2085: 'ES_AffectivIsActive' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1536)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1544)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1544)
: error C2085: 'ES_AffectivGetFrustrationScore' : not in formal parameter
list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1552)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1562)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1562)
: error C2085: 'ES_CognitivGetCurrentAction' : not in formal parameter
list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1572)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1580)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1580)
: error C2085: 'ES_CognitivIsActive' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1591)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1600)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1600)
: error C2085: 'ES_Copy' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1611)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1622)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1622)
: error C2085: 'ES_ExpressivEqual' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1633)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1647)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1647)
: error C2085: 'ES_EmoEngineEqual' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1658)
: error C2061: syntax error : identifier 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1667)
: error C2054: expected '(' to follow 'EMOSTATE_DLL_API'
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1667)
: error C2085: 'ES_GetBatteryChargeLevel' : not in formal parameter list
\\stf1\stf1\USERS\E\ecapecci\Data\MATLAB\ML_ec\EmotivToolBox_onlineAvailable\edk.h(1668)
: error C2059: syntax error : '}'
edk_thunk_pcwin64.c(25) : error C2143: syntax error : missing '{' before
'*'
edk_thunk_pcwin64.c(25) : warning C4133: 'initializing' : incompatible
types - from 'char [16]' to 'int *'
edk_thunk_pcwin64.c(25) : error C2146: syntax error : missing ';' before
identifier 'Thunk'
edk_thunk_pcwin64.c(27) : error C2146: syntax error : missing ';' before
identifier 'p0'
edk_thunk_pcwin64.c(27) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(28) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(28) : error C2146: syntax error : missing ')' before
identifier 'strDevID'
edk_thunk_pcwin64.c(28) : warning C4047: '=' : 'char' differs in levels
of indirection from 'char [21]'
edk_thunk_pcwin64.c(28) : error C2143: syntax error : missing ';' before
'const'
edk_thunk_pcwin64.c(28) : error C2059: syntax error : ')'
edk_thunk_pcwin64.c(29) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(29) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(29) : error C2065: 'p0' : undeclared identifier
edk_thunk_pcwin64.c(30) : error C2143: syntax error : missing ')' before
'='
edk_thunk_pcwin64.c(30) : error C2143: syntax error : missing ')' before
'='
edk_thunk_pcwin64.c(30) : fatal error C1003: error count exceeds 100;
stopping compilation
Error in EmotivEEG (line 73)
[notfound,warnings] = loadlibrary('edk.dll','edk.h');
%#ok<NASGU,ASGLU>
Vishnu J
Vishnu J on 22 Feb 2014
Hi I got the same error. This is the output i got..
OS =====================================
ans =
Microsoft Windows 7
=====================================
OS version
=====================================
ans =
Version 6.1 (Build 7600)
=====================================
SDK registry check
=====================================
tmp =
C:\Program Files\Microsoft SDKs\Windows\v7.1\
=====================================
MT.exe
===================================== 2
=====================================
VS 2010 Pro registry check
===================================== not found =====================================
VS ENV
=====================================
env =
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
=====================================
64bit CL.exe
===================================== 0
=====================================
32bit CL.exe
===================================== 2
=====================================
Friedrich
Friedrich on 24 Feb 2014
So the actual 64bit compiler (cl.exe) is not installed. Maybe you run into this Microsoft bug? If not, reinstall the SDK. You can follow this guide.

Sign in to comment.

More Answers (1)

Steve
Steve on 27 Jan 2015
Hi i ran your code. What does this result mean :
OS =====================================
ans =
Microsoft Windows 7
===================================== OS version =====================================
ans =
Version 6.1 (Build 7601: Service Pack 1)
===================================== SDK registry check =====================================
tmp =
C:\Program Files\Microsoft SDKs\Windows\v7.1\
===================================== MT.exe ===================================== 2
===================================== VS 2010 Pro registry check ===================================== not found ===================================== VS ENV =====================================
env =
''
=====================================

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!