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=HTML_MESSAGE autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 57698BBAF for ; Thu, 16 Oct 2008 15:16:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlABAHfb9khKfSwdlGdsb2JhbACCc4J5jTw+AQEBAQkLCgcPBaZkfodVAQMBA4Np X-IronPort-AV: E=Sophos;i="4.33,423,1220220000"; d="scan'208";a="18814923" Received: from yx-out-2324.google.com ([74.125.44.29]) by mail1-smtp-roc.national.inria.fr with ESMTP; 16 Oct 2008 15:16:53 +0200 Received: by yx-out-2324.google.com with SMTP id 3so751336yxj.3 for ; Thu, 16 Oct 2008 06:16:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=WnxKG3FlULcuad4+pdwdOsKVaKWbVFpYDTrmbq9lOZQ=; b=nbY9zeREuXKWnMRUAg3EF7EgcaOW907Di25VABzBDfGu6NuAI+eyHfnD59NhKubfwa w6AhVJ5mdChWeRI5sWZ4k+yxVls0WkvaGFFlwbHH+vMa01x5y+V4r4CQyZKpSUveHlrC pxXGyRahF8fFG7zapXKbGyTgGqn8JpLaQYrsg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=Gcc9zN9wQfiPaBTe0tt4vZCV3RLVShh3r8FtRldEmZVJYecO5uuzW4Fq6ZceEZsy2b 089DjqY1bOnCMayg2hjwgaofEKVYQEM5OdCvh+FnZVeOUkTiy64X7qeDkRfDjXmHPgCv kOfBGwD6k0Lmc+Tm72cbVYKkwADFIBvJDbZO8= Received: by 10.142.231.7 with SMTP id d7mr453061wfh.37.1224163012362; Thu, 16 Oct 2008 06:16:52 -0700 (PDT) Received: by 10.143.162.5 with HTTP; Thu, 16 Oct 2008 06:16:52 -0700 (PDT) Message-ID: Date: Thu, 16 Oct 2008 09:16:52 -0400 From: "Ashish Agarwal" To: "Harrison, John R" Subject: Re: [Caml-list] Dynamic loading on Mac OS X Cc: OCaml In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_44664_25226471.1224163012363" References: X-Spam: no; 0.00; beginner's:01 ocaml:01 ocaml:01 toplevel:01 cygwin:01 cygwin:01 dllnums:01 dllnums:01 beginner's:01 bug:01 toplevel:01 bug:01 1975:98 beginners:01 beginners:01 ------=_Part_44664_25226471.1224163012363 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline See this post on beginner's list: http://tech.groups.yahoo.com/group/ocaml_beginners/message/6905 On Wed, Oct 15, 2008 at 4:14 PM, Harrison, John R wrote: > 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. > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > ------=_Part_44664_25226471.1224163012363 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
See this post on beginner's list:


On Wed, Oct 15, 2008 at 4:14 PM, Harrison, John R <john.r.harrison@intel.com> wrote:
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.

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

------=_Part_44664_25226471.1224163012363--