we have tried long and hard to call Haskell functions from C++ usingthe FFI mechanism but without success. Don't forget to say which platform you're on - the solution might be slightly platform-dependent. $ ghc -fffi Foo.o Foo_stub.o main.cpp main.o(.text+0x22): In function `main': main.cpp:
On 9/13/05, Felix Breuer [EMAIL PROTECTED] wrote:
$ ghc -fffi Foo.o Foo_stub.o main.cppmain.o(.text+0x22): In function `main':main.cpp: undefined reference to `__stginit_Foo()'main.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'collect2: ld returned 1 exit status
In main.cpp,
Hello everyone,
the examples are working now! John, Wolfgang and Rich, thank you for your help!
On Wed, 14 Sep 2005 02:07:52 +1000
skaller [EMAIL PROTECTED] wrote:
On Tue, 2005-09-13 at 15:20 +, Felix Breuer wrote:
main.o(.text+0x22): In function `main':
main.cpp: undefined