Any help is appericiated,  I am struggling with this issue since long....and
I have to fix this issue....for my project....

Please help...

On Wed, Oct 5, 2011 at 11:20 AM, Dinesh Behl <dinesh.b...@gmail.com> wrote:

> Hi,
>
> I also tried giving
>
>
> const
> XMLCh *const foo = reinterpret_cast<const XMLCh *const>("foo");
>
> inputSource.setSystemId(foo);
>
> Then it compiles but gives linker error
>
> error LNK2019: unresolved external symbol "__declspec(dllimport) public:
> virtual void __thiscall xercesc_2_7::InputSource::setSystemId(wchar_t const
> * const)" (__imp_?setSystemId@InputSource@xercesc_2_7@@UAEXQB_W@Z)
> referenced in function _main
>
> 1>C:\srcLME\StreamTransform\test\Debug\test.exe : fatal error LNK1120: 1
> unresolved externals
>
> Dinesh
>
>
> 2011/10/5 <kesh...@us.ibm.com>
>
> The compiler is telling you that you're passing in the wrong kind of
>> string. The function expects XMLCh chararacters, not XalanDOMChar
>> characters.
>>
>>
>> ______________________________________
>> "You build world of steel and stone
>> I build worlds of words alone
>> Skilled tradespeople, long years taught:
>> You shape matter; I shape thought."
>> (http://www.songworm.com/lyrics/songworm-parody/ShapesofShadow.html)
>>
>> Dinesh Behl <dinesh.b...@gmail.com> wrote on 10/05/2011 10:11:52 AM:
>>
>> > From:
>> >
>> > Dinesh Behl <dinesh.b...@gmail.com>
>> >
>> > To:
>> >
>> > xalan-dev@xml.apache.org
>> >
>> > Date:
>> >
>> > 10/05/2011 10:12 AM
>> >
>> > Subject:
>> >
>> > Re: Issue related to Stream Transform on Windows.
>>  >
>> > Hi,
>> >
>> > Thanks for the reply.
>> >
>> > If I won't change the project settings to (treat wChar_t as built in
>> > type = NO) then I got following error
>> > error C2664: 'xercesc_2_7::InputSource::setSystemId' : cannot
>> > convert parameter 1 from 'const xalanc_1_10::XalanDOMChar *' to
>> > 'const XMLCh *const '1> Types pointed to are unrelated; conversion
>> > requires reinterpret_cast, C-style cast or function-style cast
>> > and even after reinterpret_cast Igot the error.
>> > Dinesh
>> >
>>
>> > 2011/10/5 <kesh...@us.ibm.com>
>> > First step: Can you build and run without your change?
>> >
>> > If so: The code thinks your change is incorrect, since it is having
>> > unintended effects. Ask whether you really need this change at all,
>> > and/or whether there's another way to accomplish what you need. You
>> > SHOULDN'T have to patch code to handle a simple setSystemId call.
>> >
>> >
>> > ______________________________________
>> > "You build world of steel and stone
>> > I build worlds of words alone
>> > Skilled tradespeople, long years taught:
>> > You shape matter; I shape thought."
>> > (http://www.songworm.com/lyrics/songworm-parody/ShapesofShadow.html)
>> >
>> > Dinesh Behl <dinesh.b...@gmail.com> wrote on 10/05/2011 09:45:54 AM:
>> >
>> > > From:
>> > >
>> > > Dinesh Behl <dinesh.b...@gmail.com>
>> > >
>> > > To:
>> > >
>> > > xalan-dev@xml.apache.org
>> > >
>> > > Date:
>> > >
>> > > 10/05/2011 09:46 AM
>> > >
>> > > Subject:
>> > >
>> > > Issue related to Stream Transform on Windows.
>> > >
>> > > Hi,
>> > > I am trying to debug the StreamTransform sample given along with
>> > > Xalan 1.10 package, it is build successfully with a change in the
>> > > project (treat wChar_t as built in type = NO) to solve linking problem
>> of
>> > > "inputSource.setSystemId(XalanDOMString("foo").c_str()); "
>> > > File used
>> > > : StreamTransform.cpp
>> > > Environment
>> > > : Visual Studio 2008, Windows Server 2008 Standard
>> > > Packages
>> > > : Xalan 1.10 , Xerces 2.7
>> > > Everything works fine but it crashes at the statement
>> > >                                      int theResult =
>> > > theXalanTransformer.transform(&theXMLStream, inputSource, cout);
>> > > Can anyone please suggest me what I am doing wrong. I am using the
>> > > code as provided in the sample, NO Change.
>> > > Thanks
>> > > Dinesh[attachment "StreamTransform.cpp" deleted by Joseph Kesselman/
>> > > Watson/IBM]
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org
>> > > For additional commands, e-mail: xalan-dev-h...@xml.apache.org
>>
>
>

Reply via email to