name.cc needs <climits>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCAP |
Fix Released
|
Undecided
|
Alex Rousskov |
Bug Description
This is a bug report copied from question #60461
Whilst compiling libecap-0.0.2 on a 2.6.23-1 Debian host I made the following observations/
To avoid the warning about failing to find iostream.h, I supplied the configure script with --enable-
Running make returns the following output:
Making all in src
make[1]: Entering directory `/home/
Making all in libecap
make[2]: Entering directory `/home/
Making all in common
make[3]: Entering directory `/home/
make all-am
make[4]: Entering directory `/home/
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
then mv -f ".deps/area.Tpo" ".deps/area.Plo"; else rm -f ".deps/area.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
then mv -f ".deps/
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
then mv -f ".deps/message.Tpo" ".deps/
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
if /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
then mv -f ".deps/name.Tpo" ".deps/name.Plo"; else rm -f ".deps/name.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../../../src -I/usr/
name.cc: In constructor 'libecap:
name.cc:7: error: 'INT_MIN' was not declared in this scope
name.cc: In constructor 'libecap:
name.cc:11: error: 'INT_MIN' was not declared in this scope
name.cc: In constructor 'libecap:
name.cc:15: error: 'INT_MIN' was not declared in this scope
name.cc: In member function 'bool libecap:
name.cc:23: error: 'INT_MIN' was not declared in this scope
name.cc: In member function 'void libecap:
name.cc:27: error: 'INT_MIN' was not declared in this scope
make[4]: *** [name.lo] Error 1
make[4]: Leaving directory `/home/
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/
make: *** [all-recursive] Error 1
I got it to compile by adding #include <climits.h> to name.cc. Again, I'm really not sure if this is going to impact other things, but at least it compiled. yay!
Changed in ecap: | |
status: | In Progress → Fix Committed |
Changed in ecap: | |
status: | Fix Committed → Fix Released |
You changes are probably correct. Will polish #includes.