From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA31031; Thu, 24 Apr 2003 09:28:49 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA30816 for ; Thu, 24 Apr 2003 09:28:48 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3O7SkH29736; Thu, 24 Apr 2003 09:28:46 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA31000; Thu, 24 Apr 2003 09:28:46 +0200 (MET DST) Date: Thu, 24 Apr 2003 09:28:46 +0200 From: Xavier Leroy To: Christian.Schaller@siemens.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Cygwin & dynamic loading Message-ID: <20030424092846.A30643@pauillac.inria.fr> References: <4F8477CFC03A71499AD8DDA428F5E114037CF3@neptun.cert.siemens.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <4F8477CFC03A71499AD8DDA428F5E114037CF3@neptun.cert.siemens.de>; from Christian.Schaller@siemens.com on Wed, Apr 23, 2003 at 05:23:15PM +0200 X-Spam: no; 0.00; caml-list:01 cygwin:01 ocamlmktop:01 dynamically:01 interfere:01 installer:01 ocamllib:01 unset:01 ocaml:01 -custom:01 supported:01 native:02 cma:03 library:03 dynamic:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Can anybody give me some enlightenment (so that I can sleep better again) > about the Cygwin port of OCaml. I am running this port since version 3.04 > and never encountered the following error message until I installed my > Windows system from scratch: > > $ ocamlmktop -o ocaml-str str.cma > Error on dynamically loaded library: dynamic loading not supported on this > platform > [...] > Does the native Windows OCaml installation interfere with the Cygwin port > (that's the only obvious difference between the two systems). Yes, the two installations can interfere: the native Windows installer sets the OCAMLLIB environment variable to point to its libraries. Thus, if you don't unset this variable or set it to point to the libraries of the Cygwin installation of OCaml, the latter will use the wrong libraries. And indeed the native str.cma is set up to use dynamic loading, while the Cygwin str.cma is set up to use -custom and no dynamic loading. Hope this explains your problem. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners