【问题标题】:Wxhaskell - wxcore fails due to building phase (g++ error)Wxhaskell - wxcore 由于构建阶段而失败(g++ 错误)
【发布时间】:2012-12-01 21:25:49
【问题描述】:

我正在尝试构建 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

【问题讨论】:

  • 您至少应该显示完整的 g++ 命令行。否则根本就没有足够的信息。
  • 谢谢你的评论,我加了!

标签: haskell build wxwidgets cabal-install wxhaskell


【解决方案1】:

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

here

【讨论】:

    猜你喜欢
    • 2023-03-05
    • 1970-01-01
    • 1970-01-01
    • 2022-11-02
    • 2015-06-16
    • 1970-01-01
    • 2021-07-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多