首页 > C/C++ > VC2010 编译金山卫士 隐私保护器
2010
12-01

VC2010 编译金山卫士 隐私保护器

VC2010 编译金山卫士 隐私保护器

编译中会出两个错误

第一个错误:
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(495): error C2059: syntax error : ‘(‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(495): error C2059: syntax error : ‘-‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(495): error C2059: syntax error : ‘)’
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(496): error C2143: syntax error : missing ‘;’ before ‘{‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(496): error C2447: ‘{‘ : missing function header (old-style

formal list?)
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(499): error C2059: syntax error : ‘(‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(499): error C2059: syntax error : ‘-‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(499): error C2059: syntax error : ‘)’
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(500): error C2143: syntax error : missing ‘;’ before ‘{‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(500): error C2447: ‘{‘ : missing function header (old-style

formal list?)
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(547): error C2059: syntax error : ‘(‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(547): error C2059: syntax error : ‘-‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(547): error C2059: syntax error : ‘)’
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(548): error C2143: syntax error : missing ‘;’ before ‘{‘
1>d:\program files\microsoft visual studio 10.0\vc\include\math.h(548): error C2447: ‘{‘ : missing function header (old-style

formal list?)
1>d:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2059: syntax error : ‘(‘
1>d:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2059: syntax error : ‘-‘
1>d:\program files\microsoft visual studio 10.0\vc\include\intrin.h(136): error C2059: syntax error : ‘)’

找到项目文件中的bkdlgview.h 文件 (路径D:\Projects\hg-847dd893799d\ppro\include\bkwin\bkdlgview.h)

添加两个头文件

#include 
#include 

第二个错误:

1>Manifest:
1>
1>Debug\PrivacyProtectionGUI.exe.intermediate.manifest : manifest authoring error c1010001: Values of attribute “level” not equal in different manifest snippets.
1>

在项目属性里

Property Pages->Configuration Properties->Linker->Manifest File->UAC Execution Level

把asInvoker (/level=’asInvoker’)
改成
requireAdministrator (/level=’requireAdministrator’)

编译OK

上个图

by:dnybz 2010/12/01 19:47

最后编辑:
作者:dnybz
这个作者貌似有点懒,什么都没有留下。