From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2T3ljFL016108 for ; Tue, 29 Mar 2011 05:47:45 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: An0DAFZVkU3RVdivimdsb2JhbACESZQGjHIIFAEBAQoJDQcSBiGqAIoYPIIhhRUviFwBAQMFhG53BIx4iQs6 X-IronPort-AV: E=Sophos;i="4.63,259,1299452400"; d="scan'208";a="103921316" Received: from mail-qy0-f175.google.com ([209.85.216.175]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 29 Mar 2011 05:47:40 +0200 Received: by qyk35 with SMTP id 35so1944957qyk.6 for ; Mon, 28 Mar 2011 20:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Qr2aKJkH74+9BGG1VnukQ6rnE2t3GuIltDDLUo9Isek=; b=rOi9DWiXQ1EirMme9Fi+KZEPI8/kJtFMs622qlJLF59T54cKlKUzAQ/RO/tMWGoyRD ljfwxoLYcwJnaRDwyOjXBB/aRamlBjTiwGhWxjslvcfsGDu6DjEH0/Ivri+ik7TbK2Wy Xk9sqMzGrXeGFLd7KwKDnrlEJq+J94/VmOVCk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AqdFmvu/Qs1InFbf9qIhV2oybvzS/3au/NeHw16ezHiLu8tPzMo1KTOnD8G1lqF+jN TtCC3usDYgsjnhaxrfC5QkD/oPkoroRQ5y2+7VrlIlc99vEp8hMVjYKiDdlBQr6mcb4o rF1DwZ+oizzem9uCfKok7L5lk4pPNm1ts4Xtk= MIME-Version: 1.0 Received: by 10.229.34.68 with SMTP id k4mr4249551qcd.3.1301370458993; Mon, 28 Mar 2011 20:47:38 -0700 (PDT) Received: by 10.229.87.129 with HTTP; Mon, 28 Mar 2011 20:47:38 -0700 (PDT) Date: Mon, 28 Mar 2011 23:47:38 -0400 Message-ID: From: Niki Yoshiuchi To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=0016368340ccedf76c049f96eb86 Subject: [Caml-list] library naming conflict --0016368340ccedf76c049f96eb86 Content-Type: text/plain; charset=UTF-8 I'm using oasis (with ocamlbuild) to create a library. Specifically, I'm writing bindings to portmidi. Naming my ocaml library "portmidi" causes linking problems. It seems to be from a conflict when linking the C-library "-lportmidi" (the linker tries to link with the local libportmidi.a file instead of the file in /usr/lib). My solution at the moment is to just give my ocaml library a different name, however I'd prefer to name it "portmidi". Is there a simple fix? Thanks, -Niki Yoshiuchi --0016368340ccedf76c049f96eb86 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm using oasis (with ocamlbuild) to create a library.=C2=A0 Specifical= ly, I'm writing bindings to portmidi.

Naming my ocaml library &q= uot;portmidi" causes linking problems.=C2=A0 It seems to be from a con= flict when linking the C-library "-lportmidi" (the linker tries t= o link with the local libportmidi.a file instead of the file in /usr/lib).= =C2=A0 My solution at the moment is to just give my ocaml library a differe= nt name, however I'd prefer to name it "portmidi".

Is there a simple fix?

Thanks,
-Niki Yoshiuchi
--0016368340ccedf76c049f96eb86--