[英]how to add the reference of dll in a makefile for cpp project()
I need to add the reference to a "System.Management.Automation.dll" in my cpp project. 我需要在cpp项目中将引用添加到“ System.Management.Automation.dll”。 and to build this project there is the makefile.
要构建这个项目,有一个makefile。 I am new to makefiles and need to know how to add the reference of this dll in my existing makefile.
我是makefile的新手,需要知道如何在现有的makefile中添加此dll的引用。
Referencing a DLL is done by loading a DLL (dynamic linking in code). 通过加载DLL(代码中的动态链接)来完成对DLL的引用。 You do not need to state it in the makefile.
您无需在makefile中声明它。
You might accually want to add a lib and includes for this DLL. 您可能会很想添加一个lib并为此DLL包含。
Refer to this link (dll and lib distinction) 引用此链接(dll和lib的区别)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.