使用 gnatmake 启用“--enable-stdcall-fixup”标志?
Enabling "--enable-stdcall-fixup" flag with gnatmake?
我正在使用 gnatmake
构建我的 Ada 项目,但收到以下警告:
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
,但声称这不是一个开关,我如何通过 gnatmake
传递链接器选项?
gnatmake --enable-stdcall-fixup main.adb
gnatmake: invalid switch: --enable-stdcall-fixup
(1) 编辑:
使用答案建议的更改后,我仍然遇到相同的错误,但这次它似乎正确传递给了链接器。
gnatmake main.adb -f -largs --enable-stdcall-fixup
gcc -c main.adb
gcc -c winapi.ads
gnatbind -x main.ali
gnatlink main.ali --enable-stdcall-fixup
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
尝试-largs opts
来自gnatmake --help
:
To pass an arbitrary switch to the Compiler, Binder or Linker:
-cargs opts opts are passed to the compiler
-bargs opts opts are passed to the binder
-largs opts opts are passed to the linker
-margs opts opts are passed to gnatmake
我正在使用 gnatmake
构建我的 Ada 项目,但收到以下警告:
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
,但声称这不是一个开关,我如何通过 gnatmake
传递链接器选项?
gnatmake --enable-stdcall-fixup main.adb
gnatmake: invalid switch: --enable-stdcall-fixup
(1) 编辑:
使用答案建议的更改后,我仍然遇到相同的错误,但这次它似乎正确传递给了链接器。
gnatmake main.adb -f -largs --enable-stdcall-fixup
gcc -c main.adb
gcc -c winapi.ads
gnatbind -x main.ali
gnatlink main.ali --enable-stdcall-fixup
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
尝试-largs opts
来自gnatmake --help
:
To pass an arbitrary switch to the Compiler, Binder or Linker:
-cargs opts opts are passed to the compiler
-bargs opts opts are passed to the binder
-largs opts opts are passed to the linker
-margs opts opts are passed to gnatmake