我用的VS2008,TrueCrypt版本是7.0,但编译时出错了。
我参照了很网上朋友写的贴子,http://www.cppblog.com/aurain/archive/2010/11/01/132026.html
但还是编译没通过。请大家帮助。错误信息如下文,错误全是securitytoken文件出错了,请大家指点:错误 1 error C2065: “CK_TRUE”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 128
错误 2 error C2065: “CK_UTF8CHAR”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 135
错误 3 error C2059: 语法错误 : “)” c:\worksapce\truecrypt\common\securitytoken.cpp 135
错误 4 error C2059: 语法错误 : “,” c:\worksapce\truecrypt\common\securitytoken.cpp 135
错误 5 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\worksapce\truecrypt\common\securitytoken.cpp 136
错误 6 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\worksapce\truecrypt\common\securitytoken.cpp 136
错误 7 error C2065: “Pkcs11Functions”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 8 error C2227: “->C_CreateObject”的左边必须指向类/结构/联合/泛型类型 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 9 error C2065: “Sessions”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 10 error C2065: “slotId”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 11 error C2228: “.Handle”的左边必须有类/结构/联合 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 12 error C2065: “keyfileTemplate”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 13 error C2065: “keyfileTemplate”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 14 error C2070: “'unknown-type'”: 非法的 sizeof 操作数 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 15 error C2065: “keyfileTemplate”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 141
错误 16 error C2059: 语法错误 : “switch” c:\worksapce\truecrypt\common\securitytoken.cpp 143
错误 17 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\worksapce\truecrypt\common\securitytoken.cpp 144
错误 18 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\worksapce\truecrypt\common\securitytoken.cpp 144
错误 19 error C2059: 语法错误 : “if” c:\worksapce\truecrypt\common\securitytoken.cpp 154
错误 20 error C2065: “slotId”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 160
错误 21 error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int c:\worksapce\truecrypt\common\securitytoken.cpp 160
错误 22 error C2078: 初始值设定项太多 c:\worksapce\truecrypt\common\securitytoken.cpp 160
错误 23 error C2440: “初始化”: 无法从“std::vector<_Ty>”转换为“int” c:\worksapce\truecrypt\common\securitytoken.cpp 160
错误 24 error C2059: 语法错误 : “if” c:\worksapce\truecrypt\common\securitytoken.cpp 163
错误 25 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\worksapce\truecrypt\common\securitytoken.cpp 164
错误 26 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\worksapce\truecrypt\common\securitytoken.cpp 164
错误 27 error C2059: 语法错误 : “}” c:\worksapce\truecrypt\common\securitytoken.cpp 168
错误 28 error C2143: 语法错误 : 缺少“;”(在“}”的前面) c:\worksapce\truecrypt\common\securitytoken.cpp 168
错误 29 error C2059: 语法错误 : “}” c:\worksapce\truecrypt\common\securitytoken.cpp 168
错误 30 error C2653: “SecurityToken”: 不是类或命名空间名称 c:\worksapce\truecrypt\common\securitytoken.cpp 170
错误 31 error C2143: 语法错误 : 缺少“;”(在“{”的前面) c:\worksapce\truecrypt\common\securitytoken.cpp 171
错误 32 error C2447: “{”: 缺少函数标题(是否是老式的形式表?) c:\worksapce\truecrypt\common\securitytoken.cpp 171
错误 33 error C2065: “SecurityTokenKeyfile”: 未声明的标识符 c:\worksapce\truecrypt\common\securitytoken.cpp 179