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

More here http://www.swmm456.com/2018/07/visual-instructions-for-compiling.html

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

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

  1. 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.

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

the VC2010-DLL.VCPROJ file.

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

Release configuration.

  1. 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

 

Leave a Reply

Translate »
Scroll to Top

Discover more from SWMM5, ICM SWMM, ICM InfoWorks, Ruby and Vibe Apps, InfoSWMM, InfoSewer

Subscribe now to keep reading and get access to the full archive.

Continue reading