2011-02-04 4 views
0

Google Test를 다운로드했습니다. 그런 다음 "gtest.sln"파일을 열었습니다. 변환 후 "build"를 클릭했지만 Visual Studio 2005에서 아래 오류를 반복해서 들었습니다. 어떻게해야합니까? 감사합니다.Google 테스트를 구축 할 때 shellapi 오류가 발생했습니다.

3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\shellapi.h(69) : error 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 : ')' 

답변

1

아마도 포함 디렉터리의 순서를 변경해야합니다.

처음에는 포함 경로에 PlatformSDK가있는 것으로 보입니다. VS를 포함하는 디렉토리가 먼저 사용되도록 "아래로"이동하십시오. gtest가 사용중인 PlatformSDK 버전과 호환되지 않는 것 같습니다.

행운을 빈다.

+0

대단히 감사합니다 :))))) 이것은 정말로 나를 매우 도움이되었습니다. 며칠 동안이 문제를 해결할 수 없었다 :)) – trante

관련 문제