【发布时间】:2019-07-30 02:39:19
【问题描述】:
我已将一个代码文件从另一个成功编译的代码复制到我的代码中,但在我的代码中,它有很多错误,与其他代码一样。像这样:
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\pathcch.h(34): error C2059: syntax error: 'string'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\pathcch.h(34): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(37): error C2059: syntax error: 'string'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(37): error C2238: unexpected token(s) preceding ';'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(49): error C2059: syntax error: 'string'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(49): error C2238: unexpected token(s) preceding ';'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(57): error C2059: syntax error: 'string'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(57): error C2238: unexpected token(s) preceding ';'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(65): error C2059: syntax error: 'string'
1> c:\program files (x86)\windows kits\10\include\10.0.15063.0\um\propkey.h(65): error C2238: unexpected token(s) preceding ';'
请帮帮我,谢谢!
对不起我的英语不好。
【问题讨论】:
-
你在编译驱动吗?
-
@Nina:对不起,我不知道怎么编译驱动,你能告诉我吗?谢谢。
-
你确定你正在编译 C++ 而不是 C?
-
显示您的代码。
-
@AnhHuânLê 请edit 你的问题在 StackOverflow 上显示你的代码,而不是在其他网站上
标签: c++ string notifications syntax-error