I made FFI bindings to the C ++ unordered_map container (aka hash_map) and its wrapper library called libstl.a. For the first time he worked well. But after some point, he was unable to associate the library with the following error messages, and I cannot understand why.
$ ghci -L. -lstl -lstdc++
GHCi, version 7.6.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading object (static archive) ./libstl.a ... done
Loading object (dynamic) /usr/lib/gcc/x86_64-linux-gnu/4.7/libstdc++.so ... done
final link ... ghc: ./libstl.a: unknown symbol `_ZZNKSt8__detail20_Prime_rehash_policy11_M_next_bktEmE10__fast_bkt'
linking extra libraries/objects failed
Sources for the library are at https://github.com/comatose/stl-container . Any help would be appreciated.
source
share