1,编译出错 error LNK2026:模块对于SAFESEH映像是不安全的。
解决办法:
Change the Project properties:
1. Right-Click on the Project (e.g. SimulationTrial) -> Properties
2 Set Configuration to "All Configurations"
3. Goto Configuration Properties -> Linker -> Input.
4. Set Ignore All Default Libraries: "No"
5. Set Ignore Specific Default Libraries: "LIBC.lib;LIBCMTD.lib"
6. Goto Configuration Properties -> Linker -> Advanced
7. Set Image Has Safe Exception Handlers:"No (/SAFESEH:NO)"
8. Click "OK"-Button.
2,无法启动程序,\.\Output\Debug\SimulationTrial.exe 。
在项目属性页-配置属性-链接器-常规-输出文件 改为 $(OutDir)$(TargetName)$(TargetExt)
注意打开工程时点lsn后缀的文件打开。