caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Problem to link
@ 2003-10-14 18:37 Richard Gaétan
  0 siblings, 0 replies; only message in thread
From: Richard Gaétan @ 2003-10-14 18:37 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

Hello,

I am currently working on OCaml bindings for the samba library and I have encountered the following problem:

The library (written in C) I need to include (smbclient) in my program uses a fonction nammed string_set and so has Ocaml. I don't need this function in
my code but it is used inside the library.

I have two files in my library: the C one compiles to smbclient.o and the OCaml one to smbclient.cmo.

I can compile the program without warning by doing :
ocamlc -cclib lsmbclient -custom smbclient.o smbclient.cmo

But during the link phase Ocamlc links string_set to his own function , resulting a segmentation fault in the program.

 Does anyone know how I can compile my program in order that every call at string_set in the smbclient library use the function string_set located in that library ?

Thanks,

Gaétan

[-- Attachment #2: Type: text/html, Size: 1370 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-14 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-14 18:37 [Caml-list] Problem to link Richard Gaétan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).