
4 May
2014
4 May
'14
1:34 a.m.
I had a look at deka. It seems you need to list the decContext.c and decQuad.c in the other order in the cabal file to make the .o files show up in the right order in the call to ghc (you can see it with cabal repl -v).
Indeed, flipping the two and adding -fPIC to cc-options: in the cabal file made cabal repl work. Thanks a bunch. The version I'm working on now links in several more C object files and I'm having the same problem there; I am reading up on linkers and fiddling around with it.