我是
trying to compile an open-source project
.
其中一个步骤涉及运行
.mak
包含以下行的文件:
kbddvp32.dll: kbddvp32.obj kbddvp.res
$(LINK32) -nologo -dll -base:0x5FFF0000 -subsystem:native -def:kbddvp.def -noentry \
-merge:.edata=.data -merge:.rdata=.data -merge:.text=.data -merge:.bss=.data \
-ignore:4078,4070 -section:.data,re -opt:nowin98 -stack:0x40000,0x1000 -opt:ref,icf \
-release -out:$@ $**
... 这就变成了:
link -machine:ix86 -nologo -dll -base:0x5FFF0000 -subsystem:native -def:
kbddvp.def -noentry -merge:.edata=.data -merge:.rdata=.data -merge:.text=.data
-merge:.bss=.data -ignore:4078,4070 -section:.data,re -opt:nowin98 -stack:0x400
00,0x1000 -opt:ref,icf -release -out:kbddvp32.dll kbddvp32.obj kbddvp.res
... 执行时,会产生以下警告:
LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported; ignored
Creating library kbddvp32.lib and object kbddvp32.exp
LINK : warning LNK4254: section '.edata' (40000040) merged into '.data' (C000004
0) with different attributes
LINK : warning LNK4254: section '.rdata' (40000040) merged into '.data' (C000004
0) with different attributes
LINK : warning LNK4254: section '.text' (60000020) merged into '.data' (C0000040
) with different attributes
LINK : warning LNK4254: section '.bss' (C0000080) merged into '.data' (C0000040)
with different attributes
我试着读那本书
documentation for warning LNK4254
,但我对link.exe了解不够,无法理解如何修复它。
文件
kbddvp.def
包含:
LIBRARY KBDDVP
EXPORTS
KbdLayerDescriptor @1
麦先生
this page
这似乎是基于,这是
-merge:
首先使用零件。我知道这页说你可以
MSKLC 1.4
然而,它并不支持我想要实现的所有特性。