From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p2TL51HI018971 for ; Tue, 29 Mar 2011 23:05:01 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsMCAD1Ikk3RVdY2kGdsb2JhbACYTox5CBQBAQEBCQkNBxQEIYh5oA2KVYIhhUEviFwBAQMFhWUEhTaHTIRHgjiCDDo X-IronPort-AV: E=Sophos;i="4.63,264,1299452400"; d="scan'208";a="79436730" Received: from mail-bw0-f54.google.com ([209.85.214.54]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 29 Mar 2011 23:04:56 +0200 Received: by bwz12 with SMTP id 12so890495bwz.27 for ; Tue, 29 Mar 2011 14:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=/Gjhkj0WKovVmSEkFom5qJRwcPu9Gu0MkB6tEBaCw4w=; b=Ktt1SFnRW2t3zQkflpa/+WcknfbewVqEsDBqYB+1GDYlT9V3ZcvIYGPpAujrAHoyRj H6SIm1NTMDSIhkovuBDBRwIsDmO/o8Q0WfymvIUTsSRhp8WnF0tvhzxlqBYumsFtWbGM 06L05UXbg1pQSHwA/WuYg2qzuC9IT6fSd0fu0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=CYrKf0zmDlxA2XQBG5JTBmJHaZ8wT0hcFv8kHV0wRnM2BFXR89XAWvVtHkgGQzftbR 0EYeV7F6t6NyK9A5So2gL+1zaw8GNT+wfFnJYGWsnhd8lal6yEm55ECZl2Xx0qLKtun9 U8H9B4YQxNS72YBFOAOMsJY4mRuURJPxpvXKo= Received: by 10.204.29.18 with SMTP id o18mr317780bkc.12.1301432695469; Tue, 29 Mar 2011 14:04:55 -0700 (PDT) Received: from lemon.local.tld (34-85-133-95.pool.ukrtel.net [95.133.85.34]) by mx.google.com with ESMTPS id k5sm3683829bku.4.2011.03.29.14.04.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Mar 2011 14:04:53 -0700 (PDT) Date: Wed, 30 Mar 2011 00:04:22 +0300 From: ygrek To: caml-list@inria.fr Message-Id: <20110330000422.f7301a81.ygrekheretix@gmail.com> In-Reply-To: References: X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] library naming conflict On Mon, 28 Mar 2011 23:47:38 -0400 Niki Yoshiuchi wrote: > 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? Use a different name for cma file but keep "portmidi" findlib package name? PS I guess ocaml compiler could easily solve this annoyance by choosing some unique prefix/postfix for cmxa native library counterpart (i.e. xxx,cma -> xxx_caml.a), and this should not break any code out there? -- ygrek http://ygrek.org.ua