How do I link a VS2008 C++ project as a DLL instead of a LIB?
- by Clark Battle
I have the C++ source code in a Visual Studio project from another developer that compiles into a static lib. I need to change it so that it builds a dll from that code so that I can call it from C#. I went into the project properties in Visual Studio and changed the configuration type to a DLL. However, it now gives lots of linker errors like:
error LNK2001: unresolved external symbol __CAP_Enter_Function XXXFilter.obj XXXFramework
What else do I need to do in Visual Studio and in the code to produce a dll from the code instead of a lib? The library is huge so writing a wrapper is not an option. I have the code so I should be able to make it build a dll.
I am not a very experienced C++ dev but I am in C# and visual studio.
Thanks