在VC ++ 2008中编译.dll文件时,.def文件的位置在哪里? [英] Where is location of .def file when I compile a .dll file in VC++2008?

查看:103
本文介绍了在VC ++ 2008中编译.dll文件时,.def文件的位置在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

当我编译.dll文件时,我总是创建一个包含导出函数的.def文件,我必须使用\DEF命令链接到这个.def文件;当我将该文件夹(文件夹包含项目的所有文件)复制到另一个位置时,我不方便(我必须重新链接.def文件)。该文件夹中.def文件的哪个位置可以避免这种优势?或者我使用/ DEF命令如何避免?在此先感谢。

Hi all,
When I compile a .dll file I always create a .def file which contains the exported functions, I have to use "\DEF" command to link to this .def file; that is inconvenient when I copy that folder (folder contains all of files of project) to another location (I have to re-link .def file). Which location of .def file in this folder to avoid this advantage? Or I use "/DEF" command how to avoid? Thanks in advance.

推荐答案

您可以在项目设置中指定def文件的目的地,因此它将始终复制到特定位置。使用自定义属性设置,并添加一个复制语句以将其复制到目标库。
You can specify the destination of the def file in your project settings, so it will always be copied to a specific location. Use the custom properties settings, and add a copy statement to copy it to your destination library.


这篇关于在VC ++ 2008中编译.dll文件时,.def文件的位置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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