From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 48056BBAF for ; Wed, 15 Oct 2008 22:17:45 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiwBABPt9UiPtnwVmmdsb2JhbACTYAEBAQEBCAsKBxGuNIFr X-IronPort-AV: E=Sophos;i="4.33,417,1220220000"; d="scan'208";a="18145226" Received: from mga03.intel.com ([143.182.124.21]) by mail3-smtp-sop.national.inria.fr with ESMTP; 15 Oct 2008 22:17:44 +0200 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 15 Oct 2008 13:14:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.33,417,1220252400"; d="scan'208";a="60408990" Received: from azsmsx602.amr.corp.intel.com ([10.2.121.201]) by azsmga001.ch.intel.com with ESMTP; 15 Oct 2008 13:14:50 -0700 Received: from azsmsx501.amr.corp.intel.com ([10.2.167.99]) by azsmsx602.amr.corp.intel.com ([10.2.121.201]) with mapi; Wed, 15 Oct 2008 13:14:50 -0700 From: "Harrison, John R" To: OCaml Date: Wed, 15 Oct 2008 13:14:50 -0700 Subject: Dynamic loading on Mac OS X Thread-Topic: Dynamic loading on Mac OS X Thread-Index: AckvAq1DcLNtVtYLT1KkRVvzVhBvew== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam: no; 0.00; ocaml:01 toplevel:01 cygwin:01 ocaml:01 cygwin:01 dllnums:01 dllnums:01 cma:01 cma:01 nums:01 nums:01 supported:02 library:03 dynamic:03 dynamic:03 This discussion of dynamic loading in 3.11 reminded me of a more basic question I meant to ask, but never did. On certain platforms, e.g. all Linuxes I've ever used, the following works in a plain OCaml toplevel: #load "nums.cma";; On other platforms, notably Cygwin, it doesn't. (At least, for OCaml 3.10 on my version of Cygwin, which is not very old.) # #load "nums.cma";; Cannot load required shared library dllnums. Reason: dllnums.so: dynamic loading not supported on this platform. I was sure that Mac OS X was among the platforms where this *doesn't* work, based on experiments a year or two ago. However I recently found that apparently it *does* after all work on my Mac. Since the original experiments I've upgraded the Mac to Leopard, and maybe I've even changed my OCaml version, though I don't remember for sure. Am I just plain wrong, or has this really only started to work recently? John.