I did the following:
1. Downloaded STLport 4.5.3
2. Unpacked it.
3. Modified stlport/stl/_site_config.h to add #define _REENTRANT
4. Added the STLport directory to the include paths in the IDE, placing
it ahead of the Microsoft paths.
5. Built the STLport's library as described in the documentation.
6. Added the STLport library path the lib paths in the IDE
7. Got the latest Xalan sources and did a clean build of Xalan
8. Fixed a little glitch in the conformance test utility class where the
appropriate header file was not being included
9. Ran the conformance test
The only problem was one failure, which looks to be a bug in STLport
regarding the definition of something in std::numeric_limits. It should be
possible to either get the STLport to fix this, or to make a special case
in the code.
I then built and ran the StreamTransform sample, which uses iostreams, and
that worked fine. I'm going to do some further testing with the release
build (the previous was done using the debug build), so I don't know yet if
the release build will work.
I'm actually shocked it was so easy.
I'll investigate the "leak" situation, but you may just be seeing memory
the STLport's allocators are not returning before the application shuts
down. You might try defining _STLP_USE_NEWALLOC to get STLport to use
new/delete for allocations, instead of its node<> allocators, to see if
that removes the "leaks".
Dave
"Drazen DOTLIC"
<Drazen. To:
<[email protected]>
[EMAIL PROTECTED] cc: (bcc: David N
Bertoni/Cambridge/IBM)
com> Subject: Building Xalan 1.3 with
STLPort on Windows (2000)
07/31/2002 01:57
AM
Hello,
I'm trying to build Xalan 1.3 using STLPort instead of default STL
library provided by Visual Studio 6 SP5. The STLPort is configured to
use it's own streams, and to be thread safe (only two defines we have,
well, defined :) are __STL_USE_OWN_NAMESPACE and _REENTRANT). Now, by
trial and error I've managed to get it compile and somewhat work... I
added the following to the VCPPDefinitions.hpp:
// STLPort stuff
#define XALAN_NEW_STD_ALLOCATOR
#define XALAN_STLPORT_STL
#define XALAN_SGI_BASED_STL
// STL Port Definitions
#define _STLP_USE_NEWALLOC
#include <stl/_config.h>
The problem I'm having is that when I compile Xalan.exe (console utility
I use for testing my XSLT's from XMLSpy) I get a lot of memory leaks
after each transform. Is there anything else I am overlooking? Is there
anyone that successfully compiled and is using (in production
environment, not for leisure or learning) this combination?
Thanks in advance,
Drazen