Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Richard Gaétan" <gaetan.richard@ens-lyon.fr>
To: <caml-list@inria.fr>
Subject: [Caml-list] Problem to link
Date: Tue, 14 Oct 2003 20:37:43 +0200	[thread overview]
Message-ID: <004801c39282$42ee1990$9d804d8c@Korolev> (raw)

[-- 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 --]

                 reply	other threads:[~2003-10-14 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='004801c39282$42ee1990$9d804d8c@Korolev' \
    --to=gaetan.richard@ens-lyon.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox