我试图将外部cpp库与haskell链接。运行stack build
似乎正确构建它但当我尝试运行stack repl
时出现此错误:
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-unknown-linux):
Loading archives not supported
app.cabal
executable app-server
...
include-dirs: /usr/local/include
extra-libraries: symengine stdc++ gmpxx gmp
...
stack.yml
flags: {}
packages:
- '.'
extra-include-dirs:
- /usr/local/include
extra-lib-dirs:
- /usr/local/lib
extra-deps: []
extra-package-dbs: []
resolver: lts-7.1
我在mac osx sierra和debian jessie上尝试过。
使用ghc-8.0.1(来自lts-7.1)。
我在我的计算机上安装了symengine stdc++ gmpxx gmp
。
有谁知道我在这里做错了什么?