Browse thread
Wrapping OCaml function returning a variant
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2007-03-28 (22:47) |
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/