From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 07A38BCAD for ; Tue, 24 May 2005 09:11:36 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j4O7BZB1026744 for ; Tue, 24 May 2005 09:11:35 +0200 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 JAA27841 for ; Tue, 24 May 2005 09:11:35 +0200 (MET DST) Received: from publilogics.com (pouic.publilogics.com [213.186.50.35]) by concorde.inria.fr (8.13.0/8.13.0) with SMTP id j4O7BY8R013435 for ; Tue, 24 May 2005 09:11:34 +0200 Received: (qmail 2723 invoked from network); 24 May 2005 07:11:33 -0000 Received: from unknown (HELO PWARP) ([61.213.94.147]) (envelope-sender ) by pouic.publilogics.com (qmail-ldap-1.03) with SMTP for ; 24 May 2005 07:11:33 -0000 Message-ID: <005801c5602f$b786a070$0d05a8c0@PWARP> From: "Nicolas Cannasse" To: "Robert Roessler" , References: <4292A58D.207@rftp.com> <20050524.132951.104054009.garrigue@mailhost.math.nagoya-u.ac.jp> <4292CC39.1020405@rftp.com> Subject: Re: [Caml-list] ocamlopt and *using* DLLs Date: Tue, 24 May 2005 16:10:48 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-j-chkmail-Score: MSGID : 4292D3A6.000 on concorde : j-chkmail score : X : 0/40 1 X-Miltered: at nez-perce with ID 4292D3A7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4292D3A6.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 ocamlopt:01 dlls:01 ocamlrun:01 lib:01 ocamlrun:01 bytecode:01 -custom:01 nativecode:01 ocaml:01 api:01 makefile:01 ocaml-win:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: > Put a different way, ml_scintilla.dll definitely has a dependence on > ocamlrun.dll - which logical need would not go away even if I > repackaged the DLL as a static lib. Actually the symbols are only imported from ocamlrun.dll if you compile-with or define the CAML_DLL preprocessor variable. If you don't have CAML_DLL defined, symbols will be resolved at linking time, and will then be found in your executable. So it's possible to have a staticly linked library in both bytecode (with -custom) and nativecode. You can have a look at the OCaml Win32 API library Makefile that have different ways of building and linking it (http://ocaml-win32.sourceforge.net/). Nicolas