我正在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
发布评论