Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] reg : camlidl_malloc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dmitry Bely <dbely@m...>
Subject: Re: [Caml-list] reg : camlidl_malloc
Sandeep Subramaniam <sandeeps@ittc.ku.edu> writes:

> But when dynamically linking this C code with Caml code I get the error :
>
> "Error on dynamically loaded library: ./test1_stubs.so: undefined symbol:
> camlidl_malloc"
>
> It seems that camlidl_malloc() is declared in camlidlruntime.h but not
> defined .
>
> So how do I solve this error ?

Add -lcamlidl to your link options.

Hope to hear from you soon,
Dmitry


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners