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 Nilliom <st...@cgi.com> on 2011/08/16 20:00:30 UTC
unsatified symbols error on linking
Hi
I have a problem linking xalan 1.4 (I know it's old but I can't work with
something else on this system) with my code.
I keep getting the following errors:
/usr/ccs/bin/ld: Unsatisfied symbols:
XSLTResultTarget::XSLTResultTarget(std::basic_ostream<char,std::char_traits<char>>
*)%1 (first referenced in XgwcXmlTransformer.o) (code)
XSLTInputSource::XSLTInputSource(std::basic_istream<char,std::char_traits<char>>
*)%1 (first referenced in XgwcXmlTransformer.o) (code)
I tried rebuilding the .o in question but without success.
The code in my program is the following:
#include <strstream>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
#include <stdio.h>
#include <String.h>
#include <rw/cstring.h>
#include "XgwcXmlTransformer.hpp"
#include <util/PlatformUtils.hpp>
#include <XalanDOM/XalanDOMString.hpp>
#include <XSLT/XSLTInputSource.hpp>
#include <XSLT/XSLTResultTarget.hpp>
...
RWCString inXsl;
// oMessage is a wrapper around an RWCString
istrstream theXMLStream(oMessage.getXmlBuffer.data(),
oMessage.getXmlBuffer().length());
istrstream theXSLStream(inXsl, inXsl.length());
ostrstream theOutput;
XSLTInputSource inputXmlSource(&theXMLStream);
inputXmlSource.setSystemId(c_wstr(XalanDOMString("xmlData")));
XSLTInputSource inputXslSource(&theXSLStream);
inputXslSource.setSystemId(c_wstr(XalanDOMString("xslSheet")));
XSLTResultTarget outputTarget(&theOutput);
// theXalanTransformer being a member variable on my main object.
int theResult=
theXalanTransformer.transform(inputXmlSource,inputXslSource,outputTarget);
...
The library libxalan-c1_4_0.sl is on the path and included also in the
makefile command line.
The include files are found since it does not give an error anymore on
compilation.
Please help me, my project is due to end this week and I'm stuck
Thanks in advance.
--
View this message in context: http://old.nabble.com/unsatified-symbols-error-on-linking-tp32273898p32273898.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: unsatified symbols error on linking
Posted by David Bertoni <db...@apache.org>.
On 8/17/2011 3:46 AM, Nilliom wrote:
>
> The ">>" sequence is what is reported by the linker error as the signature of
> the XSLTResultTarget and XSLTInputSource, not something that I control.
>
> Thanks
You are probably not linking with the Xalan-C library. Please provide
the exact compiler and linker lines you're using.
Dave
Re: unsatified symbols error on linking
Posted by Nilliom <st...@cgi.com>.
The ">>" sequence is what is reported by the linker error as the signature of
the XSLTResultTarget and XSLTInputSource, not something that I control.
Thanks
shathawa wrote:
>
> Nilliom,
>
> I wish I could do more help. My expertise with Xalan-C is with versions
> 1.10 and the CurrentSVN version 1.11. Most of the original Xalan team
> is no longer working on the project.
>
> The first thing I can see that may be a problem is the ">>" sequence.
> You should probably make sure you have space between the '>' symbols.
>
> - Steven J. Hathaway
>
> On 8/16/2011 11:00 AM, Nilliom wrote:
>> Hi
>>
>> I have a problem linking xalan 1.4 (I know it's old but I can't work with
>> something else on this system) with my code.
>>
>> I keep getting the following errors:
>>
>> /usr/ccs/bin/ld: Unsatisfied symbols:
>>
>> XSLTResultTarget::XSLTResultTarget(std::basic_ostream<char,std::char_traits<char>>
>> *)%1 (first referenced in XgwcXmlTransformer.o) (code)
>>
>> XSLTInputSource::XSLTInputSource(std::basic_istream<char,std::char_traits<char>>
>> *)%1 (first referenced in XgwcXmlTransformer.o) (code)
>>
>> I tried rebuilding the .o in question but without success.
>>
>> The code in my program is the following:
>>
>> #include<strstream>
>> #include<iomanip>
>> #include<iostream>
>> #include<string>
>> using namespace std;
>> #include<stdio.h>
>> #include<String.h>
>> #include<rw/cstring.h>
>> #include "XgwcXmlTransformer.hpp"
>> #include<util/PlatformUtils.hpp>
>> #include<XalanDOM/XalanDOMString.hpp>
>> #include<XSLT/XSLTInputSource.hpp>
>> #include<XSLT/XSLTResultTarget.hpp>
>>
>> ..
>> RWCString inXsl;
>> // oMessage is a wrapper around an RWCString
>>
>> istrstream theXMLStream(oMessage.getXmlBuffer.data(),
>> oMessage.getXmlBuffer().length());
>> istrstream theXSLStream(inXsl, inXsl.length());
>> ostrstream theOutput;
>>
>> XSLTInputSource inputXmlSource(&theXMLStream);
>> inputXmlSource.setSystemId(c_wstr(XalanDOMString("xmlData")));
>>
>> XSLTInputSource inputXslSource(&theXSLStream);
>> inputXslSource.setSystemId(c_wstr(XalanDOMString("xslSheet")));
>>
>> XSLTResultTarget outputTarget(&theOutput);
>>
>> // theXalanTransformer being a member variable on my main object.
>> int theResult=
>> theXalanTransformer.transform(inputXmlSource,inputXslSource,outputTarget);
>> ..
>>
>> The library libxalan-c1_4_0.sl is on the path and included also in the
>> makefile command line.
>> The include files are found since it does not give an error anymore on
>> compilation.
>>
>> Please help me, my project is due to end this week and I'm stuck
>>
>> Thanks in advance.
>>
>
>
>
--
View this message in context: http://old.nabble.com/unsatified-symbols-error-on-linking-tp32273898p32278632.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.
Re: unsatified symbols error on linking
Posted by Steve Hathaway <sh...@e-z.net>.
Nilliom,
I wish I could do more help. My expertise with Xalan-C is with versions
1.10 and the CurrentSVN version 1.11. Most of the original Xalan team
is no longer working on the project.
The first thing I can see that may be a problem is the ">>" sequence.
You should probably make sure you have space between the '>' symbols.
- Steven J. Hathaway
On 8/16/2011 11:00 AM, Nilliom wrote:
> Hi
>
> I have a problem linking xalan 1.4 (I know it's old but I can't work with
> something else on this system) with my code.
>
> I keep getting the following errors:
>
> /usr/ccs/bin/ld: Unsatisfied symbols:
>
> XSLTResultTarget::XSLTResultTarget(std::basic_ostream<char,std::char_traits<char>>
> *)%1 (first referenced in XgwcXmlTransformer.o) (code)
>
> XSLTInputSource::XSLTInputSource(std::basic_istream<char,std::char_traits<char>>
> *)%1 (first referenced in XgwcXmlTransformer.o) (code)
>
> I tried rebuilding the .o in question but without success.
>
> The code in my program is the following:
>
> #include<strstream>
> #include<iomanip>
> #include<iostream>
> #include<string>
> using namespace std;
> #include<stdio.h>
> #include<String.h>
> #include<rw/cstring.h>
> #include "XgwcXmlTransformer.hpp"
> #include<util/PlatformUtils.hpp>
> #include<XalanDOM/XalanDOMString.hpp>
> #include<XSLT/XSLTInputSource.hpp>
> #include<XSLT/XSLTResultTarget.hpp>
>
> ..
> RWCString inXsl;
> // oMessage is a wrapper around an RWCString
>
> istrstream theXMLStream(oMessage.getXmlBuffer.data(),
> oMessage.getXmlBuffer().length());
> istrstream theXSLStream(inXsl, inXsl.length());
> ostrstream theOutput;
>
> XSLTInputSource inputXmlSource(&theXMLStream);
> inputXmlSource.setSystemId(c_wstr(XalanDOMString("xmlData")));
>
> XSLTInputSource inputXslSource(&theXSLStream);
> inputXslSource.setSystemId(c_wstr(XalanDOMString("xslSheet")));
>
> XSLTResultTarget outputTarget(&theOutput);
>
> // theXalanTransformer being a member variable on my main object.
> int theResult=
> theXalanTransformer.transform(inputXmlSource,inputXslSource,outputTarget);
> ..
>
> The library libxalan-c1_4_0.sl is on the path and included also in the
> makefile command line.
> The include files are found since it does not give an error anymore on
> compilation.
>
> Please help me, my project is due to end this week and I'm stuck
>
> Thanks in advance.
>