1

我正在尝试构建 wxhaskell,似乎有很多麻烦,我可以弄清楚在某些情况下该怎么做,但我现在卡住了。

我正在使用 wxwidgets-2.8 / wxhaskell-0.11.1.2,出现的错误是:

g++: error: unrecognized command line option ‘-Wl’
g++: error: unrecognized command line option ‘--soname=/home/ming/.cabal/lib/libwxc-gtk2.8.12-0.11.1.2.so’
make: *** [dist/wxc/libwxc-gtk2.8.12-0.11.1.2.so] Fehler 1
cabal: Error: some packages failed to install:
wxcore-0.11.1.2 failed during the building phase. The exception was:
ExitFailure 2

有谁知道如何解决这个问题?提前致谢。

编辑:完整的 g++ 命令在这里:

http://pastebin.com/TbrQhWEY

4

1 回答 1

1

您的 g++ 调用具有-Wl --soname=<something>. 它应该是-Wl,--soname=<something>

这里

于 2012-12-15T11:13:01.013 回答