Linking dll in Visual Studio

前端 未结 4 998
春和景丽
春和景丽 2020-11-27 14:03

How can I add a .dll in Visual Studio 2010? I just cannot find the option there.

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 14:29

    Assume that the source file you want to compile is main.cpp and your example_dll.dll and example_dll.lib . now run cl.exe main.cpp /EHsc /link example_dll.lib now you may get main.exe

提交回复
热议问题