在Visual Studio中链接DLL [英] Linking a DLL in Visual Studio

查看:50
本文介绍了在Visual Studio中链接DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows XP上使用Visual Studio C ++ 2005.

I'm using Visual Studio C++ 2005 on Windows XP.

我已经使用Visual Studio C ++ 2005创建了一个DLL共享库.

I have created a DLL shared library using Visual Studio C++ 2005.

但是,我不确定如何链接它.通常,我刚刚创建了静态库(* .lib).

However, I am not sure how to link it. Normally I have just created the static libraries (*.lib).

我是否以与链接库时相同的方式链接.通过使用属性C/C ++和链接程序的常规属性,然后选择标题和库路径的路径?

Do I link the same way I would when linking a library. By using the properties C/C++ and linker general properties and selecting the path for the headers and library paths?

非常感谢您的任何建议.

Many thanks for any advice.

推荐答案

创建DLL时,应创建一个用于动态链接目的的.lib文件.您可以像使用静态.lib文件一样使用它们.

When you create the DLL there should be a .lib file created for the purpose of dynamic linking. You can use these just as you would static .lib files.

这篇关于在Visual Studio中链接DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆