静态DLL链接在Release vesion中给出链接错误 [英] static DLL linking gives linking error in Release vesion

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

问题描述

大家好,
我已经在mfc中创建了静态DLL,并希望使用LIB文件与基于Dialog的应用程序进行链接.
喜欢,
在链接器命令行中提供LIB文件的名称并执行.

在DEBUG版本中一切正常.

但是内置RELEASE版本时出错.

它给我像这样的错误,

Hi All,
I have created Static DLL in mfc and want to link using LIB files with Dialog based application.
Like,
Providing name of LIB file in Linker command line and execute.

things working good in DEBUG version.

But goes wrong when built in RELEASE version.

It gives me ERROR like,

error LNK2001: unresolved external symbol _FunctionName()

推荐答案

首先,没有静态DLL之类的东西,我假设您的意思是静态库.其次,错误消息表示库中未定义FunctionName(),或者您未将库包含在发行版项目设置中.
Firstly there is no such thing as a static DLL, I assume you mean a static library. Secondly the error message means that either FunctionName() is not defined in the library, or you have not included the library in your Release version project settings.


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

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