<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/10/9235eab2ffb969edc09cc15e9dfea256"
  from="Richard_Gaétan &lt;gaetan.richard@e...&gt;"
  author="Richard_Gaétan"
  date="2003-10-14T18:37:52"
  subject="[Caml-list] Problem to link"
  prev="2003/10/6638aad0140dc99b2349c854da4948c3"
  next="2003/10/48561de698e6c05397123c5888cc4dc1"
  prev-thread="2003/10/6638aad0140dc99b2349c854da4948c3"
  next-thread="2003/10/3557909eb406de5c9c556ee445b3095e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Problem to link">
<msg 
  url="2003/10/9235eab2ffb969edc09cc15e9dfea256"
  from="Richard_Gaétan &lt;gaetan.richard@e...&gt;"
  author="Richard_Gaétan"
  date="2003-10-14T18:37:52"
  subject="[Caml-list] Problem to link">
</msg>
</thread>

<contents>
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

</contents>

</message>

