English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-03-28 (15:07)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Wrapping OCaml function returning a variant
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:
collect2: ld returned 1 exit status

nm _build/libmorpher.a |grep caml_atom_table
00000400 C _caml_atom_table
          U _caml_atom_table

What am I doing wrong?

	Thanks, Joel