hi,
I m trying to install STLport on my REdhat linux machine.
Installation Steps
1.)Get the gz file-->tar->directory.
NOte : Make sure "stlport" directory of this distribution comes before
compiler's one in your search path when you compile the project;
2)Go to "src" subdirectory. It contains various makefiles for
different
compilers.
3) make -f gcc-linux.mak clean install (even tried gcc.mak)
I got
ERROR ../stlport/ctime:25:44: ../g++-v3/ctime: No such file or
directory
ERROR "../stlport/stl/_alloc.h:424: error: non-template `rebind' used
as template"
g++-v3 was not intalled so i used g++-3|g++|stlport|libstdc++-v3
to have the header files included but the errors didn't go and i keep
on getting the namespace related errors.
BUILD COMMAND
$ make -f gcc.mak install
c++ -pthread -fexceptions -I../stlport -Wall -W -Wno-sign-compare
-Wno-unused -Wno-uninitialized -ftemplate-depth-32 -O2 -fPIC
dll_main.cpp -c -o ../lib/obj/GCC/ReleaseD/dll_main.o
Questions:
1.) Which should be the include directory for building stlport in
gcc-linux.mak (default is g++-V3)? my gcc version is 3.4.3
2.) Do i need to make some other changes in the instaaltion and config
files manually ?
ERRORS
======================================
In file included from stlport_prefix.h:28,
from dll_main.cpp:29:
.../stlport/ctime:32: error: `__std_alias::size_t' has not been
declared
.../stlport/ctime:33: error: `__std_alias::clock_t' has not been
declared
.../stlport/ctime:34: error: `__std_alias::time_t' has not been
declared
.../stlport/ctime:35: error: `__std_alias::tm' has not been declared
.../stlport/ctime:37: error: `__std_alias::clock' has not been declared
ERRORS
==========================================================================
.../stlport/stl/debug/_debug.c: In static member function `static void
_STL::__stl_debug_engine<_Dummy>::_Message(const char*, ...)':
.../stlport/stl/debug/_debug.c:246: error: `va_list' is not a member of
`__std_alias'
.../stlport/stl/debug/_debug.c:246: error: expected `;' before "__args"
.../stlport/stl/debug/_debug.c:247: error: `__args' undeclared (first
use this function)
.../stlport/stl/debug/_debug.c:247: error: (Each undeclared identifier
is reported only once for each function it appears in.)
.../stlport/stl/debug/_debug.c:266: error: `vfprintf' is not a member
of `__std_alias'
=========================================================================
In file included from ../stlport/memory:28,
from dll_main.cpp:38:
.../stlport/stl/_alloc.h:416: error: non-template `rebind' used as
template
.../stlport/stl/_alloc.h:416: note: use `_Allocator::template rebind'
to indicate that it is a template
.../stlport/stl/_alloc.h:416: error: declaration does not declare
anything
.../stlport/stl/_alloc.h:417: error: `_Rebind_type' has not been
declared
.../stlport/stl/_alloc.h:417: error: expected nested-name-specifier
before "other"
.../stlport/stl/_alloc.h:417: error: `other' does not name a type
.../stlport/stl/_alloc.h:418: error: `allocator_type' does not name a
type
.../stlport/stl/_alloc.h: In function `typename
_STL::_Alloc_traits<_Tp, _Allocator>::allocator_type
_STL::__stl_alloc_create(const _Alloc&, const _Tp*)':
.../stlport/stl/_alloc.h:460: error: non-template `rebind' used as
template
.../stlport/stl/_alloc.h:460: note: use `_Alloc::template rebind' to
indicate that it is a template
.../stlport/stl/_alloc.h:460: error: declaration does not declare
anything
In file included from dll_main.cpp:46:
======================================================
ANY help will be highly appriciated :-)
Hemant