我正在使用Write-Host
来构建我的Ada项目,并收到以下警告:
Write-Host
我正在尝试将gnatmake
传递给Warning: resolving _LoadLibraryA by linking to _LoadLibraryA@4
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _GetProcAddress by linking to _GetProcAddress@8
,但声称它不是转换,我如何通过--endable-stdcall-fixup
传递链接器选项?
gnatmake
(1)编辑:
在使用答案建议的更改后,我仍然会收到相同的错误,但这次似乎正确地传递给了链接器。
gnatmake
答案 0 :(得分:1)
尝试-largs opts
来自gnatmake --help
:
将任意开关传递给Compiler,Binder或Linker:
-cargs opts opts传递给编译器
-bargs opts opts传递给绑定器
-largs opts opts传递给链接器
-margs opts opts传递给gnatmake