DlangUI Hello World程序运行返回非零错误码求助
关于DlangUI Hello World编译运行失败的问题
我是D语言和DlangUI的新手,按照官方wiki在VSCode中编译DlangUI的Hello World应用,编辑app.d文件后执行dub run,程序返回Program exited with code -1073741701。
已尝试的解决方法
dub upgrade --force-removedub build --force- 删除dub.selections.json文件
环境信息
- dmd: v2.100.2-dirty
- dub: 1.29.2
- 操作系统: Windows 10 Professional 21H1 (64位)
dub run 输出
bindbc-loader 1.0.1: target for configuration "noBC" is up to date. bindbc-opengl 1.0.2: target for configuration "dynamic" is up to date. derelict-util 3.0.0-beta.2: target for configuration "library" is up to date. derelict-ft 2.0.0-beta.5: target for configuration "library" is up to date. derelict-sdl2 3.0.0-beta.8: target for configuration "derelict-sdl2-dynamic" is up to date. inilike 1.2.1: target for configuration "library" is up to date. isfreedesktop 0.1.1: target for configuration "library" is up to date. xdgpaths 0.2.5: target for configuration "library" is up to date. icontheme 1.2.3: target for configuration "library" is up to date. dlangui 0.9.187: target for configuration "default" is up to date. helloworld ~master: building configuration "application"... C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\graphics\resources.d(104,8): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\widgets\styles.d(28,16): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\3rdparty\dimage\png.d(585,1): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. Linking... To force a rebuild of up-to-date targets, run again with --force. Copying files for dlangui... Running helloworld.exe Program exited with code -1073741701
更新#1
默认是64位构建,尝试执行dub build --arch=x86进行32位构建,出现新错误:
Performing "debug" build using D:\env\dmd2\windows\bin\dmd.exe for x86, x86_mscoff. bindbc-loader 1.0.1: building configuration "noBC"... derelict-ft 2.0.0-beta.5: building configuration "library"... derelict-sdl2 3.0.0-beta.8: building configuration "derelict-sdl2-dynamic"... inilike 1.2.1: building configuration "library"... isfreedesktop 0.1.1: building configuration "library"... xdgpaths 0.2.5: building configuration "library"... icontheme 1.2.3: building configuration "library"... dlangui 0.9.187: building configuration "default"... C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\3rdparty\dimage\png.d(585,1): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\graphics\resources.d(104,8): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\widgets\styles.d(28,16): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD helloworld ~master: building configuration "application"... C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\graphics\resources.d(104,8): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\src\dlangui\widgets\styles.d(28,16): Deprecation: module `std.xml` is deprecated - Will be removed from Phobos in 2.101.0. If you still need it, go to https://github.com/DigitalMars/undeaD C:\Users\JinReal\AppData\Local\dub\packages\dlangui-0.9.187\dlangui\3rdparty\dimage\png.d(585,1): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. Linking... lld-link: error: unknown directive: EXETYPE Error: linker exited with status 1
查阅相关帖子后发现我的配置中没有sourceFiles-windows项,并非同一问题,特此求助。
内容的提问来源于stack exchange,提问作者jinreal
相关产品推荐
相关产品推荐

