How to link a .DLL statically?

后端 未结 4 1978
庸人自扰
庸人自扰 2020-12-09 15:35

We have a (pure native C++) .DLL that is build by VS. As clients we have some native C++ applications and a .Net-Wrapper around this DLL written in C++/CLI. Finally there ar

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-09 16:25

    In the C++ project file for the dll, create two configurations, one that generates a DLL and one that generates a .lib. Two projects are not necessary, since any .NET/C++ project can support multiple build configurations (this is how Release and Debug versions build differently).

提交回复
热议问题