MDKIMZEY
asked on
How do I change a Visual C++ project from a static lib to a DLL in a VS2010 solution
I have a working Visual Studio 2010 solution with two projects. The main project includes the second project as a reference.
I converted the second project from a static LIB to a DLL. I removed the original reference from the main project in the solution and re-added it. The second project DLL successfully builds and lands in the Release and Debug folders.
When I build the solution I now get a linker error:
LNK1181: cannot open input file C:\Release\MyLib.Lib
When I inspect the linker command line, it still references the LIB file instead of the DLL.
Is there a linker setting that should be changed to recognize the DLL?
I converted the second project from a static LIB to a DLL. I removed the original reference from the main project in the solution and re-added it. The second project DLL successfully builds and lands in the Release and Debug folders.
When I build the solution I now get a linker error:
LNK1181: cannot open input file C:\Release\MyLib.Lib
When I inspect the linker command line, it still references the LIB file instead of the DLL.
Is there a linker setting that should be changed to recognize the DLL?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.