博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
SWMM[Storm Water Management Model]模型代码编译调试环境设置
阅读量:4677 次
发布时间:2019-06-09

本文共 934 字,大约阅读时间需要 3 分钟。

1. 下载计算引擎源代码后解压, 目前最新版本5-0-022。 其中包含源文件和工程文件,选择vc2005_con。在源代码目录下创建VC2005_CON目录拷贝VC2005-CON.VCPROJ 放在该目录下。

2. 注意readme文件中的说明 打开vs后修改工程设置,按照需要增加宏定义,如果要编译EXE则增加 CLE定义

       #define CLE

       //#define SOL
       //#define DLL

3. 原始的工程文件中设置了优化,并且设置了不生产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文件,开始调试。

 

 

 

转载于:https://www.cnblogs.com/WaterInfor/p/3474977.html

你可能感兴趣的文章
hdu5705
查看>>
html学习文档-10、HTML 表格
查看>>
Node.js基本开发流程
查看>>
Malware Sample Sources for Researchers
查看>>
[fw]Die 為什麼不能用現在完成式?
查看>>
js弹出框、对话框、提示框、弹窗总结
查看>>
以实现MongoDB副本集状态的监控为例,看Telegraf系统中Exec输入插件如何编写部署...
查看>>
dpkg
查看>>
DHCP概念及其缺点
查看>>
Unity3D中的第三人称镜头的脚本控制
查看>>
nyoj 492
查看>>
jquery.autocomplete插件完美应用
查看>>
RT-Thread Mini2440串口驱动
查看>>
BA--干球温度、露点温度和湿球温度--概念
查看>>
Github泄露扫描系统
查看>>
关于AFNetworking的Assertion failure崩溃
查看>>
Python 3 搭建
查看>>
数组的Clone方法
查看>>
app之模拟登陆页面的实现
查看>>
数据结构化与保存
查看>>