Menu

#245 stlport/stl/_limits.h: numeric_limits<long int> undefined

5.2
open
nobody
5
2010-11-26
2010-11-26
No

STLport version: 5.2.1 from

Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.4 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)

Build error for `git clone git://android.git.kernel.org/platform/manifest.git -b master` -> http://android.git.kernel.org/?p=platform/external/stlport.git;a=tree;h=refs/heads/master;hb=refs/heads/master :

In file included from external/gtest/src/gtest-all.cc:39:
external/gtest/src/../src/gtest-port.cc: In function ‘bool testing::internal::ParseInt32(const testing::Message&, const char*, testing::internal::Int32*)’:
external/gtest/src/../src/gtest-port.cc:591: error: ‘LONG_MAX’ was not declared in this scope
external/gtest/src/../src/gtest-port.cc:591: error: ‘LONG_MIN’ was not declared in this scope
In file included from external/stlport/stlport/stl/_num_put.h:180,
from external/stlport/stlport/stl/_ostream.c:26,
from external/stlport/stlport/stl/_ostream.h:380,
from external/stlport/stlport/stl/_istream.h:31,
from external/stlport/stlport/iostream:43,
from external/gtest/src/../include/gtest/internal/gtest-port.h:153,
from external/gtest/src/../include/gtest/internal/gtest-internal.h:40,
from external/gtest/src/../include/gtest/gtest.h:65,
from external/gtest/src/../src/gtest.cc:34,
from external/gtest/src/gtest-all.cc:36:
external/stlport/stlport/stl/_num_put.c: In function ‘char* std::priv::__write_integer_backward(char*, int, _Integer) [with _Integer = long int]’:
external/stlport/stlport/stl/_num_put.c:380: instantiated from ‘_OutputIter std::priv::__do_put_integer(_OutputIter, std::ios_base&, _CharT, _Integer) [with _CharT = char, _OutputIter = std::ostreambuf_iterator<char, std::char_traits<char> >, _Integer = long int]’
external/stlport/stlport/stl/_num_put.c:434: instantiated from ‘_OutputIter std::num_put<_CharT, _OutputIter>::do_put(_OutputIter, std::ios_base&, _CharT, long int) const [with _CharT = char, _OutputIter = std::ostreambuf_iterator<char, std::char_traits<char> >]’
external/stlport/stlport/stl/_num_put.h:67: instantiated from ‘_OutputIter std::num_put<_CharT, _OutputIter>::put(_OutputIter, std::ios_base&, _CharT, long int) const [with _CharT = char, _OutputIter = std::ostreambuf_iterator<char, std::char_traits<char> >]’
external/stlport/stlport/stl/_ostream.c:202: instantiated from ‘std::basic_ostream<_CharT, _Traits>& std::priv::__put_num(std::basic_ostream<_CharT, _Traits>&, _Number) [with _CharT = char, _Traits = std::char_traits<char>, _Number = long int]’
external/stlport/stlport/stl/_ostream.c:240: instantiated from ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char, _Traits = std::char_traits<char>]’
external/gtest/src/../include/gtest/internal/gtest-port.h:856: instantiated from here
external/stlport/stlport/stl/_num_put.c:358: error: ‘is_signed’ is not a member of ‘std::numeric_limits<long int>’
make: *** [out/debug/host/linux-x86/pr/sim/obj/STATIC_LIBRARIES/libgtest_intermediates/gtest-all.o] Fehler 1

Discussion


Log in to post a comment.