社区
非技术类
帖子详情
编译时出现这个是为什么呀?LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
dream_flying
2002-01-07 10:53:15
...全文
61
2
打赏
收藏
编译时出现这个是为什么呀?LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
netboys
2002-01-07
打赏
举报
回复
只是个warning,你试试运行程序,如果程序不正常在关注这个warning
prog_st
2002-01-07
打赏
举报
回复
The linker discarded all packaged functions that referenced exports in dynamic-link library. As a result, dynamic-link library and its import library are unneeded.
不用在意
LINK
:
warning
LNK4089
: all
ref
erence
s to "
SHELL
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
使用了静态连接会加入很多相关的
DLL
库到可执行文件中,但并不是所有的...如果你很在意这一点,可以在Project Setting中,
link
选项卡,Project
Opt
ion中的:/
OPT
:
REF
改写为 /
OPT
:NO
REF
,这样就没有警告了,但生成的...
warning
LNK4089
: all
ref
erence
s to "
SHELL
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
警告:
warning
LNK4089
: all
ref
erence
s to "
SHELL
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
。 原因:The
link
er
dis
ca
rded
all packaged functions that
ref
erence
d exports in dynamic-
link
library. As a result, dynamic...
vc6
link
warning
4089
dis
ca
rded
by /
OPT
:
REF
LINK
:
warning
LNK4089
: all
ref
erence
s to "
SHELL
32
.
DLL
"
dis
ca
rded
by /
OPT
:
REF
LINK
:
warning
LNK4089
: all
ref
erence
s to "VERSION.
DLL
"
dis
ca
rded
by /
OPT
:
REF
表示 /
OPT
:
REF
放弃对 dynamic
link
libr
LINK
:
warning
LNK4089
: all
ref
erence
s to “
SHELL
32
.
dll
”
dis
ca
rded
by /
OPT
:
REF
LINK
:
warning
LNK4089
: all
ref
erence
s to “xxxx.
dll
”
dis
ca
rded
by /
OPT
:
REF
, 解释:你没有引入xxx.
dll
中的任何东西,链接器做优化不再链接他,这有助于减小可知性文件的体积。 解决方法:其实不用管这种...
warning
LNK4089
: all
ref
erence
s to "USER
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
warning
LNK4089
: all
ref
erence
s to "USER
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
开发平台:VC
出现
错误:
warning
LNK4089
: all
ref
erence
s to "USER
32
.
dll
"
dis
ca
rded
by /
OPT
:
REF
。错误原因:由于打开了优化选项,而且...
非技术类
1,649
社区成员
58,980
社区内容
发帖
与我相关
我的任务
非技术类
VC/MFC 非技术类
复制链接
扫一扫
分享
社区描述
VC/MFC 非技术类
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章