在Windows下构建DLL时,我得到以下输出:
Linking main.exe ...
Warning: resolving _findPeaksWrapper by linking to _findPeaksWrapper@16
Use --enable-stdcall-fixup to disable these warnings
Creating library file: HSdll.dll.a
Use --disable-stdcall-fixup to disable these fixups我不清楚我应该在哪里放置--enable-stdcall-fixup标志。将其放入我的ghc-options文件的.cabal字段会产生GHC错误,而将其放入cc-options或ld-options似乎什么都不做(警告仍然显示)。这面旗子该去哪里?
发布于 2015-07-09 15:06:46
谷歌表示--enable-stdcall-fixup是ld的一种选择。有几种不同的途径可以使阴谋集团的最后一步得以实现,但在你看来,这显然是
Cabal -> ghc (link step) -> gcc -> ld因此,要匹配这一点,您必须指定
ghc-options: -optl-Wl,--enable-stdcall-fixuphttps://stackoverflow.com/questions/31277718
复制相似问题