买了个ch341t转i2c模块调试
用matlab2014调用USBIOX.dll 库为啥编译无法通过啊
用的是win10,vc2010编译器
跟64位32位有关系吗?
Type 'ULONG' was not found. Defaulting to type error.
Found on line 678 of input from line 677 of file D:\\matlab\\i2ctemper\\USBIOX.H
Type 'PCHAR' was not found. Defaulting to type error.
Found on line 678 of input from line 677 of file D:\\matlab\\i2ctemper\\USBIOX.H
*********
错误使用 loadlibrary (line 422)
生成 USBIOX_thunk_pcwin64 失败。编译器输出为:
cl -I"C:\Program Files\MATLAB\R2014a\extern\include" /W3 /nologo /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0
-I"C:\Program Files\MATLAB\R2014a\extern\include" -I"C:\Program Files\MATLAB\R2014a\simulink\include" -I"d:\matlab" -I"D:\matlab\i2ctemper"
"USBIOX_thunk_pcwin64.c" -LD -Fe"USBIOX_thunk_pcwin64.dll"
USBIOX_thunk_pcwin64.c
D:\matlab\i2ctemper\USBIOX.h(40) : error C2061: 语法错误: 标识符“NTSTATUS”
D:\matlab\i2ctemper\USBIOX.h(40) : error C2059: 语法错误:“;”
D:\matlab\i2ctemper\USBIOX.h(45) : error C2016: C 要求一个结构或联合至少有一个成员
D:\matlab\i2ctemper\USBIOX.h(45) : error C2061: 语法错误: 标识符“UCHAR”
D:\matlab\i2ctemper\USBIOX.h(46) : error C2061: 语法错误: 标识符“mUspRequest”
D:\matlab\i2ctemper\USBIOX.h(46) : error C2059: 语法错误:“;”
D:\matlab\i2ctemper\USBIOX.h(49) : error C2016: C 要求一个结构或联合至少有一个成员
D:\matlab\i2ctemper\USBIOX.h(49) : error C2061: 语法错误: 标识符“UCHAR”
D:\matlab\i2ctemper\USBIOX.h(50) : error C2061: 语法错误: 标识符“mUspValueHigh”
D:\matlab\i2ctemper\USBIOX.h(50) : error C2059: 语法错误:“;”
D:\matlab\i2ctemper\USBIOX.h(51) : error C2059: 语法错误:“}”
D:\matlab\i2ctemper\USBIOX.h(52) : error C2061: 语法错误: 标识符“mUspValue”
D:\matlab\i2ctemper\USBIOX.h(52) : error C2059: 语法错误:“;”
D:\matlab\i2ctemper\USBIOX.h(53) : error C2059: 语法错误:“}”