You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Surajit Bhattacharyya <su...@yahoo.com> on 2004/08/12 15:10:23 UTC

cannot build with xalan!!

Hi,
 I am working on SunOS 5.9 and my c++ compiler is Sun
Workshop-4.2 .
 I have been trying for some time to install Xalan C++
and build an application with that.
 
I have been trying with (xalan 1.8 xerces 2.5),
(xalan1.6, xerces 2.3 ), (xalan 1.4, xerces-2.1) and
xalan(1.3, xerces-1.6).
 
The last combination is what I am fighting out now
with.
I have also installed STLPort 4.0.
 
Now when untar the xalan  package and configure it to
run the precompiled binaries , they run fine.
Also I can use the Xalan command line utility from the
prompt as well as from a c++ code.
 
But when I try to compile a file using xalan libs say
a xalan sample file I bget all the errors.
Heere is the file I am working out with.
 
// Base header file.  Must be first.
#include <Include/PlatformDefinitions.hpp>
 
#if defined(XALAN_OLD_STREAM_HEADERS)
#include <iostream.h>
#else
#include <iostream>
#endif
 
#include <util/PlatformUtils.hpp>
#include <XalanTransformer/XalanTransformer.hpp>
 
int
main(int  argc,const char* /* argv */[])
{
#if !defined(XALAN_NO_NAMESPACES)
        using std::cerr;
        using std::endl;
#endif
 
        int     theResult = 0;
        if (argc != 1)
        {
                cerr << "Usage: SimpleTransform"
                         << endl
                         << endl;
 
                theResult = -1;
        }
        else
        {
                // Call the static initializer for
Xerces.
                XMLPlatformUtils::Initialize();
                // Initialize Xalan.
                XalanTransformer::initialize();
                {
                        // Create a XalanTransformer.
                        XalanTransformer
theXalanTransformer;
                        // The assumption is that the
executable will be run
                        // from same directory as the
input files.
                        theResult =
theXalanTransformer.transform("./xalantry/listuploads.xml",
"./xalantry/listuploads.xsl", "foo.out");
                        if(theResult != 0)
                        {
                                cerr <<
"SimpleTransform Error: \n" <<
theXalanTransformer.getLastError()
                                         << endl
                                         << endl;
                        }
                }
 
                // Terminate Xalan.
                XalanTransformer::terminate();
 
                // Call the static terminator for
Xerces.
                XMLPlatformUtils::Terminate();
        }
        return theResult;
}
 
And here is the make command to compile it and the
errors it throws. Can you provide me some guidance or
at least tell me which is the correct forum to seek
guidance if this not the correct one.
 
webdev2% make
CC -c -DSVR4 -mt -DPAGE_COUNT_TRANSITION_PHASE=1
-DMCP6 +w -features=rtti -I./xa
lantry/stlport4/STLport-4.0/stlport/SC5
-I../../xsilib/xml/cgi -I../../xsilib/xm
l/util -I/tools/rogue_MT
-I//xdds/sanjay/bld/mcp/include
-I//xdds/sanjay/bld/inc
lude -I//xdds/sanjay/bld/include/objects -I../include
-I//xdds/sanjay/bld/includ
e -I//xdds/sanjay/bld/include/objects
-I//xdds/sanjay/bld/xsilib/include -I//xdd
s/sanjay/bld/gmcp/include -IFMR_BASE/include
-I/usr/include -I/tools/curl/includ
e -I/tools/STL/include -I. -I./xmlold/xml-xalan/c/src
-I./xmlold/xerces-c1_6_0-S
olForCC/include
-I/common/mis/euro/build/common//include
-I/common/mis/euro/buil
d/common//include/misxx -L   -g process.cxx  -o
process.o
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 75: Error: The t
ype "XALAN_PLATFORM_IMPORT" is incomplete.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 75: Error: "," e
xpected instead of "{".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 83: Error: Use "
;" to terminate declarations.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 83: Error: A dec
laration was expected instead of ",".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 84: Error: Type
name expected instead of "DOMSTRING_SIZE_ERR".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 118: Error: Exce
ptionCode is not defined.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 125: Error: ")"
expected instead of "&".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 135: Error: "vir
tual" is not allowed here.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 135: Error: Type
 name expected instead of "XalanDOMException".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 135: Error: Ille
gal number of arguments for <destructor>().
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 145: Error: "vir
tual" is not allowed here.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 146: Error: Type
 name expected instead of "ExceptionCode".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 150: Error: Mult
iple declaration for ExceptionCode.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 150: Error: Exce
ptionCode must be initialized.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 150: Error: ","
expected instead of "m_code".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 151: Error: Unex
pected "}".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMException.hpp",
line 151: Warning: Em
pty declaration (probably an extra semicolon).
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 84: Error: The type
 "XALAN_PLATFORM_IMPORT" is incomplete.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 84: Error: "," expe
cted instead of "{".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 97: Error: Multiple
 declaration for value_type.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 101: Error: XalanDO
MCharVectorType is not defined.
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 101: Error: "," exp
ected instead of "size_type".
"./xmlold/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp",
line 103: Error: XalanDO
MCharVectorType is not defined.
Error: Cannot continue processing because of prior
errors.
Compilation aborted.
*** Error code 1
make: Fatal error: Command failed for target
`process.o'
/usr/ccs/bin/make returned status 0x1
 
Thanks and Regards
Surajit
 
 
 
 


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail