Version française
Home     About     Download     Resources     Contact us    
Browse thread
Wrapping OCaml function returning a variant
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Wrapping OCaml function returning a variant
I wasn't calling caml_startup in my code.

The errors went away once I did.

Foot in mouth!

On Mar 28, 2007, at 4:07 PM, Joel Reymont wrote:

> Big thanks to everyone for this awesome hand-holding with the  
> FFI :-). I'm learning, albeit slowly. I have one remaining block on  
> my road to success, apologies for reposting.
>
> I get undefined symbols when trying to produce an executable using  
> the OCaml library with the C wrapper.
>
> gcc foo.c -L_build -lmorpher -o foo
> /usr/bin/ld: Undefined symbols:
> _caml_atom_table
> _caml_code_area_end
> _caml_code_area_start
> _caml_static_data_end
> _caml_static_data_start
> collect2: ld returned 1 exit status

--
http://wagerlabs.com/