swmm5

For Thesis Students: Visual INSTRUCTIONS FOR COMPILING SWMM5.DLL USING MICROSOFT VISUAL C++ 2010/2012


For Thesis Students:  Visual INSTRUCTIONS FOR COMPILING SWMM5.DLL USING MICROSOFT VISUAL C++ 2010/2012

=========================

The following is based on the readme.txt for compiling that EPA distributes with the SWMM5 install

1. Open the file swmm5.c in a text editor and make sure that the

compiler directives at the top of the file read as follows:

//#define CLE

//#define SOL

#define DLL   or the DLL will be created

2. Create a sub-directory named VC2010_DLL under the directory where

the SWMM 5 Engine source code files are stored and copy SWMM5.DEF

and VC2010-DLL.VCPROJ to it.

3. Launch Visual C++ 2010 and use the File / Open command to open

the VC2010-DLL.VCPROJ file.

4. Issue the Build >> Configuration Manager command and select the

Release configuration.

5. Issue the Build VC2010-DLL command to build SWMM5.DLL

(which will appear in the Release subdirectory underneath the

VC2010-DLL directory).

NOTE: The VC-2010 project file includes Open MP support which is

only available with the Professional and higher versions of

the compiler.

A SmartArt view of the process

How it looks in the Windows directory

C:\SWMMandSoftware\VisualStudioSWMM5\swmm51010_engine\VC2010_DLL

Arbritray Windows directory name with a Subfolder of the SWMM 5 engine followed by a Subfolder called VC2010_DLL with files SWMM5.DEF

and VC2010-DLL.VCPROJ

How it looks in Visual Studio 2012

And here is how it compiles right away

Generating Code…

Compiling…

shape.c

snow.c

stats.c

Generating Code…

Creating library C:\SWMMandSoftware\VisualStudioSWMM5\swmm51010_engine\VC2010_DLL\Debug\VC2010-DLL.lib and object C:\SWMMandSoftware\VisualStudioSWMM5\swmm51010_engine\VC2010_DLL\Debug\VC2010-DLL.exp

VC2010-DLL.vcxproj  C:\SWMMandSoftware\VisualStudioSWMM5\swmm51010_engine\VC2010_DLL\Debug\VC2010-DLL.dll

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

If you want the Release version use Build/Release

 

Categories: swmm5

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s