1 : VS 2012 打开dsp项目文件
2 : 选择release编译 , 在 项目property -----> c++ ------> preprocessor 加 _XKEYCHECK_H
3 : Linker ----> Input 改为
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
Winmm.lib
libxml2.lib
libz.lib
msvcrt.lib
msvcprt.lib
oldnames.lib
libutils.lib
libtbxhost.lib
libtbxappsutil.lib
libtbxservices.lib
libtbxdirwatch.lib
libtbxlaunch.lib
libtbxsiputil.lib
libtbxmedia.lib
libtbxmultithreaded_jobs.lib
libtbxclitools.lib
libtbxasync_disk_io.lib
libtbxrfs.lib
libtbxtest.lib
libtbxtar.lib
libtbxpng.lib
libjson.lib
libtbcaf.lib
libtbcafodbc.lib
libtbxpcrecpp.lib
libpcre.lib
ws2_32.lib
4 : Linker ---> Advanced : Image Has Exception Handlers 设置为false
完成以上步骤,只是可以编译通过, 如果想可以单步调试,还需要:
打开Project Properties
- 展开 "Configuration Properties"
- 展开 "C/C++"
- 选择 "General",将 "Debug Information Format" 改为 "Program Database For Edit And Continue (/ZI)"
- 选择 "Optimization",将 "Optimization" 改为 "Disabled (/Od)"
- 展开 "Linker"
- 选择 "Debugging"
- 将 "Generate Debug Info" 改为 "Yes"
- 确定
1 :