Any way to link against a .NET 2003 lib in .NET 2005 ?

Started by
2 comments, last by griffin2000 17 years, 7 months ago
I have a third party static library that appears to has been compilied with the "single threaded" runtime in .NET 2003. I have none of the code or any means to recompile this .LIB. If I try and compile this in .NET 2005 I get tons of "duplicate symbol" errors at link time, no matter what runtime I use (the "single threaded" runtime has been dropped in 2005). Is there anyway round this, so I can link against this lib in .NET 2005 ?
Advertisement
Perhaps you create a new dll which links to the .lib, only exporting the functions you need, then link the dll to your new project. I've no idea if that would work though.
griffin2000,

Have you tried ignoring libraries? It usually lists the library where the duplicate symbol is coming from, so just try ignoring until you find the right combination?

-brad
-brad
Thanks... the DLL idea worked, it was a bit fiddly (I had to use the /FORCE argument so it ignored duplicate symbols).

But it works... :-)

This topic is closed to new replies.

Advertisement