开发者

shellapi error when building Google Test

开发者 https://www.devze.com 2023-02-08 09:41 出处:网络
I downloaded Google Test. Then i opened \"gtest.sln\" file. After conversion i clicked \"build\" but Visual Studio 2005 gave the errors below repeatedly.

I downloaded Google Test. Then i opened "gtest.sln" file. After conversion i clicked "build" but Visual Studio 2005 gave the errors below repeatedly. What should i do? Thank you

3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : er开发者_如何学Goror C2065: 'WHWND' : undeclared identifier
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : error C2146: syntax error : missing ')' before identifier 'hwnd'
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : warning C4229: anachronism used : modifiers on data are ignored
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : error C2491: 'ShellExecute' : definition of dllimport data not allowed
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : error C2059: syntax error : ')'


You probably need to change the order of include directories.

It seems to be you have PlatformSDK first in the include path; try to move it "down" so that VS include directories will be used first. It's probably that gtest is not compatible with your version of PlatformSDK.

Good luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号