1. 下载计算引擎源代码后解压, 目前最新版本5-0-022。 其中包含源文件和工程文件,选择vc2005_con。在源代码目录下创建VC2005_CON目录拷贝VC2005-CON.VCPROJ 放在该目录下。
2. 注意readme文件中的说明 打开vs后修改工程设置,按照需要增加宏定义,如果要编译EXE则增加 CLE定义
#define CLE
//#define SOL //#define DLL3. 原始的工程文件中设置了优化,并且设置了不生产pdb等debug信息,所以如果需要进行调试,需要修改几个设置:
1) Goto Project->Properties 2) Make sure "Configuration" at the top is "Debug" 3) On the left, select "C/C++", then "General" 4) On the right, change "Debug information format" to "Program Database for edit and continue (/ZI)" 5) On the left, Select "Optimization" 6) On the right, Change "Optimization" to "Disabled (/Od)" 7) On the left, select "Code Generation" 8) On the right, change "Runtime library" to "Multi-Threaded Debug (/MTd)" 9) On the left, expand "Linker" and select "Debugging" 10) On the right, change "Generate Debug info" to "Yes (/DEBUG)" 11) Rebuild your project.
最后在commadnline中写上输入的inp文件,开始调试。