xerces and MS VS2008

View: New views
6 Messages — Rating Filter:   Alert me  

Parent Message unknown xerces and MS VS2008

by Christofer Weßeling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there!

We are using xerces since years in our project using MS VS 2003. Now I try
to move the whole projekt to MS VS2008.

I'm getting this error, and can't find a solution:
error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall
Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@?$Attribute@J
$00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine in
Visual Studio 2003....
Treat wchar_t as built-in type is checked in our project. Using XML_LIBRARY
as precompiler option takes no effect

What else could it be?

greets!
Christofer

Re: xerces and MS VS2008

by Alberto Massari :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Christofer,
the linker is complaining about a symbol that doesn't belong to Xerces
(apart for having an argument of type DOMNode). Are you sure you have
correctly set the dependencies between your projects?

Alberto

Christofer Weßeling wrote:

> Hi there!
>
> We are using xerces since years in our project using MS VS 2003. Now I try
> to move the whole projekt to MS VS2008.
>
> I'm getting this error, and can't find a solution:
> error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall
> Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@?$Attribute@J
> $00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
> We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine in
> Visual Studio 2003....
> Treat wchar_t as built-in type is checked in our project. Using XML_LIBRARY
> as precompiler option takes no effect
>
> What else could it be?
>
> greets!
> Christofer
>
>  


Re: xerces and MS VS2008

by Christofer Weßeling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I thought the linker was claiming about a "set" function in class
xercesc_2_2::DOMNode, so that isn't what the linker means?
DOMNode belongs to xerces - there is a file includes called
"<xercesc/dom/DOMNode.hpp>" ) isn't it?

Dependencies: Yes we have checked it twice. seems to be the same then in
VS2003

Christofer

2009/11/3 Alberto Massari <amassari@...>

> Hi Christofer,
> the linker is complaining about a symbol that doesn't belong to Xerces
> (apart for having an argument of type DOMNode). Are you sure you have
> correctly set the dependencies between your projects?
>
> Alberto
>
>
> Christofer Weßeling wrote:
>
>> Hi there!
>>
>> We are using xerces since years in our project using MS VS 2003. Now I try
>> to move the whole projekt to MS VS2008.
>>
>> I'm getting this error, and can't find a solution:
>> error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall
>> Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@?$Attribute@J
>> $00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
>> We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine in
>> Visual Studio 2003....
>> Treat wchar_t as built-in type is checked in our project. Using
>> XML_LIBRARY
>> as precompiler option takes no effect
>>
>> What else could it be?
>>
>> greets!
>> Christofer
>>
>>
>>
>
>

Re: xerces and MS VS2008

by Alberto Massari :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The linker is complaining about the method

   void Attribute<long,1>::set(DOMNode *)

that is, the "set" method in a template Attribute<long, 1>; DOMNode is
simply the argument for this method. AFAIK, there is no such template in
the current Xerces code, not even in version 2.2.

Alberto


Christofer Weßeling wrote:

> Hi!
>
> I thought the linker was claiming about a "set" function in class
> xercesc_2_2::DOMNode, so that isn't what the linker means?
> DOMNode belongs to xerces - there is a file includes called
> "<xercesc/dom/DOMNode.hpp>" ) isn't it?
>
> Dependencies: Yes we have checked it twice. seems to be the same then in
> VS2003
>
> Christofer
>
> 2009/11/3 Alberto Massari <amassari@...>
>
>  
>> Hi Christofer,
>> the linker is complaining about a symbol that doesn't belong to Xerces
>> (apart for having an argument of type DOMNode). Are you sure you have
>> correctly set the dependencies between your projects?
>>
>> Alberto
>>
>>
>> Christofer Weßeling wrote:
>>
>>    
>>> Hi there!
>>>
>>> We are using xerces since years in our project using MS VS 2003. Now I try
>>> to move the whole projekt to MS VS2008.
>>>
>>> I'm getting this error, and can't find a solution:
>>> error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall
>>> Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@?$Attribute@J
>>> $00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
>>> We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine in
>>> Visual Studio 2003....
>>> Treat wchar_t as built-in type is checked in our project. Using
>>> XML_LIBRARY
>>> as precompiler option takes no effect
>>>
>>> What else could it be?
>>>
>>> greets!
>>> Christofer
>>>
>>>
>>>
>>>      
>>    
>
>  


RE: xerces and MS VS2008

by John Lilley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Pointing out the obvious, have you performed a complete rebuild since migration to 2008?
john

-----Original Message-----
From: Alberto Massari [mailto:amassari@...]
Sent: Tuesday, November 03, 2009 3:15 AM
To: c-users@...
Subject: Re: xerces and MS VS2008

The linker is complaining about the method

   void Attribute<long,1>::set(DOMNode *)

that is, the "set" method in a template Attribute<long, 1>; DOMNode is
simply the argument for this method. AFAIK, there is no such template in
the current Xerces code, not even in version 2.2.

Alberto


Christofer Weßeling wrote:

> Hi!
>
> I thought the linker was claiming about a "set" function in class
> xercesc_2_2::DOMNode, so that isn't what the linker means?
> DOMNode belongs to xerces - there is a file includes called
> "<xercesc/dom/DOMNode.hpp>" ) isn't it?
>
> Dependencies: Yes we have checked it twice. seems to be the same then in
> VS2003
>
> Christofer
>
> 2009/11/3 Alberto Massari <amassari@...>
>
>  
>> Hi Christofer,
>> the linker is complaining about a symbol that doesn't belong to Xerces
>> (apart for having an argument of type DOMNode). Are you sure you have
>> correctly set the dependencies between your projects?
>>
>> Alberto
>>
>>
>> Christofer Weßeling wrote:
>>
>>    
>>> Hi there!
>>>
>>> We are using xerces since years in our project using MS VS 2003. Now I try
>>> to move the whole projekt to MS VS2008.
>>>
>>> I'm getting this error, and can't find a solution:
>>> error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall
>>> Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@?$Attribute@J
>>> $00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
>>> We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine in
>>> Visual Studio 2003....
>>> Treat wchar_t as built-in type is checked in our project. Using
>>> XML_LIBRARY
>>> as precompiler option takes no effect
>>>
>>> What else could it be?
>>>
>>> greets!
>>> Christofer
>>>
>>>
>>>
>>>      
>>    
>
>  


Re: xerces and MS VS2008

by Christofer Weßeling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alberto, you're right. It was a bad implemented template function in NON-xerces
Code... - So just some more trust on the good implemented xerces :)


2009/11/3 Alberto Massari <amassari@...>

> The linker is complaining about the method
>
>  void Attribute<long,1>::set(DOMNode *)
>
> that is, the "set" method in a template Attribute<long, 1>; DOMNode is
> simply the argument for this method. AFAIK, there is no such template in the
> current Xerces code, not even in version 2.2.
>
>
> Alberto
>
>
> Christofer Weßeling wrote:
>
>> Hi!
>>
>> I thought the linker was claiming about a "set" function in class
>> xercesc_2_2::DOMNode, so that isn't what the linker means?
>> DOMNode belongs to xerces - there is a file includes called
>> "<xercesc/dom/DOMNode.hpp>" ) isn't it?
>>
>> Dependencies: Yes we have checked it twice. seems to be the same then in
>> VS2003
>>
>> Christofer
>>
>> 2009/11/3 Alberto Massari <amassari@...>
>>
>>
>>
>>> Hi Christofer,
>>> the linker is complaining about a symbol that doesn't belong to Xerces
>>> (apart for having an argument of type DOMNode). Are you sure you have
>>> correctly set the dependencies between your projects?
>>>
>>> Alberto
>>>
>>>
>>> Christofer Weßeling wrote:
>>>
>>>
>>>
>>>> Hi there!
>>>>
>>>> We are using xerces since years in our project using MS VS 2003. Now I
>>>> try
>>>> to move the whole projekt to MS VS2008.
>>>>
>>>> I'm getting this error, and can't find a solution:
>>>> error LNK2001: Nicht aufgelöstes externes Symbol ""public: void
>>>> __thiscall
>>>> Attribute<long,1>::set(class xercesc_2_2::DOMNode *)" (?set@
>>>> ?$Attribute@J
>>>> $00@@QAEXPAVDOMNode@xercesc_2_2@@@Z)".
>>>> We are using the xerces-c_1D.lib and xerces-c_2D.lib - that worked fine
>>>> in
>>>> Visual Studio 2003....
>>>> Treat wchar_t as built-in type is checked in our project. Using
>>>> XML_LIBRARY
>>>> as precompiler option takes no effect
>>>>
>>>> What else could it be?
>>>>
>>>> greets!
>>>> Christofer
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>
>