Agarwal, Saumya wrote:
>  
> Hi Rob,
>
> I am compiling the libxml source. I have built a static library out of
> the same source - libxml.lib. Now I want to build a DLL. While building
> the DLL, I am getting the link errors as mentioned.
>   
Wow, you have to be trying to build a version prior to 2.4.13 right?
The errors you are getting is due to the fact that you added all the .c 
files (like trio.c/trionan.c - which were not included in the 
distributed dsp BTW) and you didn't add trio support in the 
xmlwin32version.h file. Now, enabling support there will probably cause 
you to end up with more export problems but this time will be from their 
presence in the def file and the dll trying to export them.

Is there any reason you are trying to include trio support? If not, just 
drop the trio.c and trionan.c files from the build and you shouldnt have 
problems. Other than that you are probably on your own with such an old 
version and trying to do something that wasn't natively supported back 
then in the dsp.

Rob

> Thanks,
> Saumya
>
> -----Original Message-----
> From: Rob Richards [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 06, 2007 4:13 PM
> To: Agarwal, Saumya
> Cc: [email protected]
> Subject: Re: [xml] Creating DLL from libxml2 source
>
> Hi Agarwal,
>
> Agarwal, Saumya wrote:
>   
>> Hi,
>>  
>> I am attempting to create a DLL for windows from libxml2 source using 
>> the Visual C++ 6.0 IDE.
>>  
>> I get some compilation warnings - like variables being used without 
>> being initialized and get the following linker errors -
>>  
>> Linking...
>> trio.obj : error LNK2001: unresolved external symbol _StrCopyMax 
>> trio.obj : error LNK2001: unresolved external symbol _StrError 
>> trio.obj : error LNK2001: unresolved external symbol _StrEqualCase 
>> trio.obj : error LNK2001: unresolved external symbol _StrDuplicate 
>> trio.obj : error LNK2001: unresolved external symbol _StrEqual 
>> trio.obj : error LNK2001: unresolved external symbol _StrEqualMax 
>> trio.obj : error LNK2001: unresolved external symbol _StrEqualLocale 
>> trio.obj : error LNK2001: unresolved external symbol _StrToDouble 
>> Debug/LIBXML.dll : fatal error LNK1120: 8 unresolved externals Error 
>> executing link.exe.
>>  
>> I have the strio.h include file added in the header files of the 
>> project and these symbol definitions are present there. What else do I
>>     
>
>   
>> need to do to get rid of these link errors?
>>     
> What exactly are you compiling?
>
> First off, using the current build system, it doesn't appear that trio
> is built under windows, so you are probably the only one trying that
> right now.
> Secondly, strio.h hasn't existed in libxml2 since 2002, so now really
> curious what you are using for source.
>
> Rob
>
>   
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to