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 RAA06424; Fri, 24 Sep 2004 17:21:41 +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 RAA06122 for ; Fri, 24 Sep 2004 17:21:39 +0200 (MET DST) Received: from slinky.cs.nyu.edu (SLINKY.CS.NYU.EDU [128.122.20.14]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8OFLct4006576 for ; Fri, 24 Sep 2004 17:21:38 +0200 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id i8OFLJoQ001292; Fri, 24 Sep 2004 11:21:19 -0400 (EDT) Date: Fri, 24 Sep 2004 11:21:19 -0400 (EDT) From: Igor Pechtchanski Reply-To: caml-list@inria.fr To: Matthieu Dubuget cc: caml-list@inria.fr Subject: =?iso-8859-1?Q?Re:_[Caml-list]_DLL_(windows)_creation_problem?= In-Reply-To: Message-ID: References: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 X-Miltered: at concorde with ID 41543B82.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; nyu:99 caml-list:01 matthieu:01 dubuget:01 ocamlopt:01 ocamlc:01 libasmrun:01 libcamlrun:01 ocamlc:01 -output-obj:01 libcamlrun:01 matthieu:01 dubuget:01 dependencies:01 cygwin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 24 Sep 2004, matthieu.dubuget wrote: > The same thing with bytecode (replaced ocamlopt by ocamlc, > and libasmrun.lib by libcamlrun.lib) works. Why? > > C:\test>ocamlc -output-obj -o dac1.obj dac.ml > C:\test>ocamlc -c ms_dac.c > C:\test>link -nologo -dll -out:ms_dac.dll -def:ms_dac.def > dac1.obj ms_dac.obj -libpath:c:\ocaml\lib libcamlrun.lib > C:\test>cl -o t.exe -nologo -Ox -MT ms_dac.lib t.c > C:\test>t.exe > t.exe > 0 > 1 > > Salutations > Matthieu Dubuget I suspect it's because the bytecode linking mechanism does different things for dependencies (e.g., they aren't represented as unresolved symbols). Hopefully, someone will correct me if I'm wrong. Igor Pechtchanski, volunteer O'Caml maintainer for Cygwin -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw ------------------- 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