Re: [Haskell-cafe] Building a shared library with FFI on x86_64

2011-01-27 Thread Henk-Jan van Tuyl
On Thu, 27 Jan 2011 20:59:06 +0100, Eric Webster wrote: I have a project that involves building a shared library containing code generated by GHC and exposed using the foreign function interface to other C programs that link against it. I'm able to build a functioning library without issue on 3

Re: [Haskell-cafe] Building a shared library with FFI on x86_64

2011-01-27 Thread Eric Webster
Thanks to http://www.well-typed.com/blog/30 I was able to figure out what I was doing wrong. Replacing "-optl -shared" with just "-shared" and using "-dynamic" allows linking to complete. :D On 2011-01-27 11:59 AM, Eric Webster wrote: I have a project that involves building a shared library co

[Haskell-cafe] Building a shared library with FFI on x86_64

2011-01-27 Thread Eric Webster
I have a project that involves building a shared library containing code generated by GHC and exposed using the foreign function interface to other C programs that link against it. I'm able to build a functioning library without issue on 32bit x86 systems using GHC 6.8.2 and 6.12.3. When I try