Hi,

        I've run into a problem combining Xalan with my STLport-enabled app.
I know I don't need STLport on Linux.  However, ALL of our apps use STLport
for the cross-platform compatability and stability of the STLport
implementation, etc (we use the same code base for Win32, Linux, Solaris,
among others).

        In any case, I don't call very much of Xalan, but the
XalanTransformer::transform() call is giving me an "undefined reference"
when I try to link.  So I REBUILT all of Xalan with
-I/usr/local/STLport/stlport  on the compile line (had to modify a few
source files and remove XALAN_OLD_STREAM_HEADERS from GCCDefinitions.hpp to
make everything happy).  I STILL get the same undefined reference.  My call
to transform() passes in an istrstream (input XML from core), ifstream
(input XSL from a file), and ostrstream (output HTML in core), and COMPILES
just wonderfully
(with -Wall).

        As a simpler example, I tried the XalanTransform sample that comes
with Xalan 1.1.  Using THIS command line:

gcc -Wall -o XalanTransform XalanTransform.cpp -I../../src
-I../../../../xml-xerces/c/include -lxalan-c1_1 -lxerces-c1_4

        the sample compiles & links happily.  Using THIS command line:

gcc -Wall -o XalanTransform XalanTransform.cpp -I/usr/local/STLport/stlport
-I../../src -I../../../../xml-xerces/c/include -lxalan-c1_1 -lxerces-c1_4
-lstlport_gcc

        I get the following:

undefined reference to `XalanTransformer::transform(char const *, char const
*, _STL::basic_ostream<char, _STL::char_traits<char> > &)`

        Any ideas what's going wrong?  Is there a way to use Xalan in an
STLport-enabled application?  Thanks in advance.

                                                                Allan
Stirrett
                                                                SkyStream
Networks.

Reply via email to