***************************************************************************
Warning: Neither -compatibleArrayDims nor -largeArrayDims is selected.
Using -compatibleArrayDims. In the future, MATLAB will require
the use of -largeArrayDims and remove the -compatibleArrayDims
option. For more information, see:
http://www.mathworks.com/help/matlab...4-bit-api.html
****************************************************************************
-> Default options filename found in C:\Users\RUIVOC\AppData\Roaming\MathWorks\MATLAB\R2013a
----------------------------------------------------------------
-> Options file = C:\Users\RUIVOC\AppData\Roaming\MathWorks\MATLAB\R2013a\mexopts.bat
MATLAB = C:\Program Files\MATLAB\R2013a
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS = /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD
OPTIMFLAGS = /O2 /Oy- /DNDEBUG
DEBUGFLAGS = /Z7
arguments = -ID:/HCE/mexfile/
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS = /dll /export:mexFunction /LIBPATH:"C:\Program Files\MATLAB\R2013a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib /MACHINE:X64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /manifest /incremental:NO /implib:"C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\templib.x" /MAP:"test_mex.mexw64.map"
LINKDEBUGFLAGS = /debug /PDB:"test_mex.mexw64.pdb"
LINKFLAGSPOST =
Name directive = /out:"test_mex.mexw64"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
--> cl -ID:/HCE/mexfile/ /c /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /FoC:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\test_mex.obj -I"C:\Program Files\MATLAB\R2013a\extern\include" -I"C:\Program Files\MATLAB\R2013a\simulink\include" /O2 /Oy- /DNDEBUG -DMX_COMPAT_32 test_mex.cpp
test_mex.cpp
Contents of C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\mex_tmp.rsp:
C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\test_mex.obj
--> link /out:"test_mex.mexw64" /dll /export:mexFunction /LIBPATH:"C:\Program Files\MATLAB\R2013a\extern\lib\win64\microsoft" libmx.lib libmex.lib libmat.lib /MACHINE:X64 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /manifest /incremental:NO /implib:"C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\templib.x" /MAP:"test_mex.mexw64.map" @C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\mex_tmp.rsp D:\HCE\mexfile\SpectralRadar.lib
Creating library C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\templib.x and object C:\Users\RUIVOC\AppData\Local\Temp\mex_l9qYXw\templib.exp
test_mex.obj : error LNK2019: unresolved external symbol __imp_closeDevice referenced in function mexFunction
test_mex.obj : error LNK2019: unresolved external symbol __imp_initDevice referenced in function mexFunction
test_mex.mexw64 : fatal error LNK1120: 2 unresolved externals
C:\PROGRA~1\MATLAB\R2013A\BIN\MEX.PL: Error: Link of 'test_mex.mexw64' failed.
Error using mex (line 206)
Unable to complete successfully.
Error in main (line 3)
mex -v test_mex.cpp -I"D:/HCE/mexfile/" -L"D:/HCE/mexfile/" -lSpectralRadar
Partager