I tried to compile different versions of the code and I am not sure which version I should compile. For example when I build " swmm51010" or some lower versions I get this error:
.\..\source5_1_010\stats.c(28): fatal error C1083: Cannot open include file: 'omp.h': No such file or directory
I can build and compile swmm51013 but when I run the code with some examples .inp files , I get error in the report file as:
EPA STORM WATER MANAGEMENT MODEL - VERSION 5.0 (Build 5.0.013) --------------------------------------------------------------
ERROR 205: invalid keyword MIN_SLOPE at line 31 of [OPTION] section: MIN_SLOPE
Analysis begun on: Wed Oct 21 05:26:29 2015 Analysis ended on: Wed Oct 21 05:26:29 2015 Total elapsed time: < 1 sec
Sorry if I am bothering you too much, but I really need to make sure if it can be compiled without error, then I can make changes to the code and the report file.
I could finally compile the code through Visual studio express 2010, and made the .exe file, bout when I run it with one .inp file of SWMM examples (provided in guides and the manual) , I get errors in report file such as :
ERROR 205: invalid keyword MIN_SLOPE at line 31 of [OPTION] section: MIN_SLOPE
Is it because I compiled it the wrong way? If so I would appreciate if you can let me know a little bit more details on compile procedure of code in visual studio express 2010.
//********************************************************** // Leave only one of the following 3 lines un-commented, // depending on the choice of compilation target //********************************************************** //#define CLE /* Compile as a command line executable */ //#define SOL /* Compile as a shared object library */ #define DLL /* Compile as a Windows DLL */
did you un-comment the #define CLE line?
I normally use the free MS Visual Studio compiler but if looks like you are using gcc
Microsoft Visual Studio 2010 Version 10.0.30319.1 RTMRel Microsoft .NET Framework Version 4.5.50938 RTMRel
Installed Version: VC Express
Microsoft Visual C++ 2010 01013-169-2610014-70549 Microsoft Visual C++ 2010
I am trying to compile the source code of SWMM5 -1-010 , but I get some errors regarding the code and debugging .
Is this code has problem or I am compiling it the wrong way?
I un-commented the first three lines of swmm5.c code, and copied and pasted make file in the same directory as source code and I also have installed MinGW , so in Dos command window , I typed gcc swmm5.c. I got error as follows. (in the image)
Could you please let me know if this is the right way of compiling the code?
Comments
Hi Robert,
I tried to compile different versions of the code and I am not sure which version I should compile. For example when I build " swmm51010" or some lower versions I get this error:
.\..\source5_1_010\stats.c(28): fatal error C1083: Cannot open include file: 'omp.h': No such file or directory
I can build and compile swmm51013 but when I run the code with some examples .inp files , I get error in the report file as:
EPA STORM WATER MANAGEMENT MODEL - VERSION 5.0 (Build 5.0.013) --------------------------------------------------------------
ERROR 205: invalid keyword MIN_SLOPE at line 31 of [OPTION] section: MIN_SLOPE
Analysis begun on: Wed Oct 21 05:26:29 2015 Analysis ended on: Wed Oct 21 05:26:29 2015 Total elapsed time: < 1 sec
Sorry if I am bothering you too much, but I really need to make sure if it can be compiled without error, then I can make changes to the code and the report file.
Thanks,
Hi Robert,
Do you think this error is because compilation or the code that I compiled had problem?
Thanks,Tara
Yes , here is the whole text report I get:
EPA STORM WATER MANAGEMENT MODEL - VERSION 5.0 (Build 5.0.013)
--------------------------------------------------------------
ERROR 205: invalid keyword MIN_SLOPE at line 31 of [OPTION] section:
MIN_SLOPE
Analysis begun on: Sat Oct 17 22:00:04 2015
Analysis ended on: Sat Oct 17 22:00:04 2015
Total elapsed time: < 1 sec
Do you get any other text (readable) in the output file report file.
Hi Robert,
I could finally compile the code through Visual studio express 2010, and made the .exe file, bout when I run it with one .inp file of SWMM examples (provided in guides and the manual) , I get errors in report file such as :
--------------------------------------------------------------
ERROR 205: invalid keyword MIN_SLOPE at line 31 of [OPTION] section:
MIN_SLOPE
Is it because I compiled it the wrong way?
If so I would appreciate if you can let me know a little bit more details on compile procedure of code in visual studio express 2010.
Thanks a lot
Tara
Hi Robert,
Thanks for the reply.
By three columns, I meant these ones:
#define CLE /* Compile as a command line executable */
#define SOL /* Compile as a shared object library */
#define DLL /* Compile as a Windows DLL */
I un-commented all.
and I don't have visual studio 2010 , I used MinGw compiler .
I will download visual Studio compiler if its free and try with that, do I need to download and install Visual Studio C++ 2010 ? or just the compiler?
Tara
The 1st three lines are
//**********************************************************
// Leave only one of the following 3 lines un-commented,
// depending on the choice of compilation target
//**********************************************************
//#define CLE /* Compile as a command line executable */
//#define SOL /* Compile as a shared object library */
#define DLL /* Compile as a Windows DLL */
did you un-comment the #define CLE line?
I normally use the free MS Visual Studio compiler but if looks like you are using gcc
Microsoft Visual Studio 2010
Version 10.0.30319.1 RTMRel
Microsoft .NET Framework
Version 4.5.50938 RTMRel
Installed Version: VC Express
Microsoft Visual C++ 2010 01013-169-2610014-70549
Microsoft Visual C++ 2010
Hi Robert,
I am trying to compile the source code of SWMM5 -1-010 , but I get some errors regarding the code and debugging .
Is this code has problem or I am compiling it the wrong way?
I un-commented the first three lines of swmm5.c code, and copied and pasted make file in the same directory as source code and I also have installed MinGW , so in Dos command window , I typed gcc swmm5.c. I got error as follows. (in the image)
Could you please let me know if this is the right way of compiling the code?
Thanks,
Tara
Hi Tara, What was your question? I thought you had permission to make a discussion.