[CLAM] Linking xerces in .NET
Vegard Sandvold
vegard.sandvold at notam02.no
Sat May 14 17:18:08 PDT 2005
Hi Xavier,
On Fri, May 13, 2005 16:54, Xavier Amatriain said:
> Asking for something to make sense in M$'s environments is too much ;)
Tell me about it:-) The only reason I use Visual Studio right now is that
I'm developing a music analysis plugin for Winamp. It feels like swimming
with lead weights strapped to my legs.
> I
> recently had to work a few days with Visual Studio .Net and run into
> similar problems. Most of them, though, are due to the environment not
> realizing that the projects settings have been modified from outside
> (i.e. srcdeps). Usually if you follow this process whenever changing
> settings it will work:
>
> - Close Microsoft.Net
> - Delete any trace of Microsoft in your build directory ;) (I mean
> those .sln and donowhat files that are added there by the environment)
> - run srcdeps from the command prompt
> - Open the newly generated project from the environment
> - Recompile everything
Nope, did not work for me. I removed all project files etc. and ran
srcdeps again. The linker still failes with this kind of error messages
(90 total):
XMLStorage.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_3::AbstractDOMParser::TextDecl(unsigned
short const * const,unsigned short const * const)"
(?TextDecl at AbstractDOMParser@xercesc_2_3@@UAEXQBG0 at Z)
My workaround is to open the project properties, and in the Linker->Input
dialog add the following to the Additional Dependencies field:
xerces-c_2.lib xerces-c_2D.lib
You'll recognize these as the xerces lib file names. I should mention that
I compile my project as a shared library, if that makes a difference.
Xerces resides in the usual place in the sandbox.
Regards,
Vegard
>
>
> El dv 13 de 05 del 2005 a les 09:56 +0200, en/na Vegard Sandvold va
> escriure:
>> Hi,
>>
>> at the moment I'm developing a CLAM app in Visual Studio .NET, and I run
>> into a problem when I compile with XML support.
>>
>> The linker complains horribly about unresolved symbols. It seems to me
>> that it is nessessary to define the xerces .lib files as "additional
>> dependencies" (I don't remember the field exactly) together with the
>> FFTW
>> lib files in the project properties. At least then the problem goes
>> away.
>> Does this make sense?
>>
>> Cheers!
>> Vegard
>>
>>
>>
>>
>>
>> _______________________________________________
>> CLAM mailing list
>> CLAM at iua.upf.es
>> http://www.iua.upf.es/mtg/clam
>>
>>
> --
> /**********************************
> ********* Xavier Amatriain ********
> ****** Music Technology Group *****
> ** IUA- Universitat Pompeu Fabra **
> ****** www.iua.upf.es/~xamat ******
> ***********************************/
>
>
--
Vegard Sandvold
Systemansvarlig
NOTAM
Nedre gate 5
0551 Oslo
Telefon: (+47) 22 35 80 60
Fax: (+47) 22 35 80 61
Web: http://www.notam02.no
E-post: drift at notam02.no
More information about the clam-users
mailing list