Discussion:
[Sipp-users] [scenario.cpp:900: error: ‘INT_MAX’ was not declared in this scope]
HOUNKONNOU Carole
2009-03-23 18:50:17 UTC
Permalink
Hi,

I am trying to compile SIPP on Ubuntu 8.10 but when I
run the "make" command, I get:

message.cpp:501: warning: deprecated conversion from string constant to ‘char*’
g++   -D__LINUX -pthread  -DSVN_VERSION="\"unknown\""       -I. -I/usr/include/openssl  -c -o scenario.o scenario.cpp
scenario.cpp: In constructor ‘scenario::scenario(char*, int)’:
scenario.cpp:900: error: ‘INT_MAX’ was not declared in this scope
scenario.cpp: In function ‘CSample* parse_distribution(bool)’:
scenario.cpp:1054: warning: deprecated conversion from string constant to ‘char*’

If you have already got this problem or if you have a solution,
please could you help me ?

Thanks in advance.
Dmitry Goncharov
2009-03-30 07:53:55 UTC
Permalink
Post by HOUNKONNOU Carole
Hi,
I am trying to compile SIPP on Ubuntu 8.10 but when I
message.cpp:501: warning: deprecated conversion from string constant to ‘char*’
g++ -D__LINUX -pthread -DSVN_VERSION="\"unknown\"" -I.
-I/usr/include/openssl -c -o scenario.o scenario.cpp
scenario.cpp:900: error: ‘INT_MAX’ was not declared in this scope
scenario.cpp:1054: warning: deprecated conversion from string constant to ‘char*’
If you have already got this problem or if you have a solution,
please could you help me ?
Thanks in advance.
Add
#include <limits.h>
in scenario.cpp.

BR, Dmitry

Loading...