Skip to content

Commit e29ed1d

Browse files
authored
Fix errors in linker output when building ARM64EC (#19331)
Summary of the issue: When building NVDA with Visual Studio 2026, errors are printed when linking ARm64EC: build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaController_speakText@@3P6AKPEB_W@ZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaControllerInternal_handleRemoteURL@@3P6AKPEB_W@ZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaControllerInternal_reportLiveRegion@@3P6AKPEB_W0@ZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaController_cancelSpeech@@3P6AKXZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaControllerInternal_inputCompositionUpdate@@3P6AKPEB_WHHH@ZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) build\arm64ec\local\nvdaHelperLocal.def : error LNK1397: '?_nvdaControllerInternal_inputConversionModeUpdate@@3P6AKJJK@ZEA' is an invalid name for a function export, treating it as a data export. (Did you forget 'DATA' in the .def file?) Description of user facing changes: None Description of developer facing changes: No longer errors when building NVDA. Description of development approach: Do as the linker suggests, explicitly mark non-function exports with the DATA keyword
1 parent 39e499b commit e29ed1d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

nvdaHelper/local/nvdaHelperLocal.def

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
EXPORTS
22
createRemoteBindingHandle
33
cancellableSendMessageTimeout
4-
cancelCallEvent
5-
_notifySendMessageCancelled
4+
cancelCallEvent DATA
5+
_notifySendMessageCancelled DATA
66
nvdaHelperLocal_initialize
77
nvdaHelperLocal_terminate
88
generateBeep
@@ -36,24 +36,24 @@ EXPORTS
3636
VBuf_locateControlFieldNodeAtOffset
3737
VBuf_locateTextFieldNodeAtOffset
3838
VBuf_setSelectionOffsets
39-
_nvdaControllerInternal_requestRegistration
40-
_nvdaControllerInternal_displayModelTextChangeNotify
41-
_nvdaControllerInternal_inputLangChangeNotify
42-
_nvdaControllerInternal_inputCompositionUpdate
43-
_nvdaControllerInternal_inputCandidateListUpdate
44-
_nvdaControllerInternal_IMEOpenStatusUpdate
45-
_nvdaControllerInternal_inputConversionModeUpdate
46-
_nvdaControllerInternal_logMessage
47-
_nvdaControllerInternal_typedCharacterNotify
48-
_nvdaControllerInternal_installAddonPackageFromPath
49-
_nvdaControllerInternal_handleRemoteURL
50-
_nvdaControllerInternal_drawFocusRectNotify
51-
_nvdaController_brailleMessage
52-
_nvdaController_cancelSpeech
53-
_nvdaController_speakText
54-
_nvdaController_speakSsml
39+
_nvdaControllerInternal_requestRegistration DATA
40+
_nvdaControllerInternal_displayModelTextChangeNotify DATA
41+
_nvdaControllerInternal_inputLangChangeNotify DATA
42+
_nvdaControllerInternal_inputCompositionUpdate DATA
43+
_nvdaControllerInternal_inputCandidateListUpdate DATA
44+
_nvdaControllerInternal_IMEOpenStatusUpdate DATA
45+
_nvdaControllerInternal_inputConversionModeUpdate DATA
46+
_nvdaControllerInternal_logMessage DATA
47+
_nvdaControllerInternal_typedCharacterNotify DATA
48+
_nvdaControllerInternal_installAddonPackageFromPath DATA
49+
_nvdaControllerInternal_handleRemoteURL DATA
50+
_nvdaControllerInternal_drawFocusRectNotify DATA
51+
_nvdaController_brailleMessage DATA
52+
_nvdaController_cancelSpeech DATA
53+
_nvdaController_speakText DATA
54+
_nvdaController_speakSsml DATA
5555
nvdaController_onSsmlMarkReached
56-
_nvdaControllerInternal_vbufChangeNotify
56+
_nvdaControllerInternal_vbufChangeNotify DATA
5757
displayModel_getWindowTextInRect
5858
displayModel_getFocusRect
5959
displayModel_getCaretRect
@@ -70,8 +70,8 @@ EXPORTS
7070
logMessage
7171
getOleClipboardText
7272
getOleUserType
73-
_nvdaControllerInternal_reportLiveRegion
74-
_nvdaControllerInternal_openConfigDirectory
73+
_nvdaControllerInternal_reportLiveRegion DATA
74+
_nvdaControllerInternal_openConfigDirectory DATA
7575
rateLimitedUIAEventHandler_create
7676
rateLimitedUIAEventHandler_terminate
7777
wasPlay_create

0 commit comments

Comments
 (0)