From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 424ADBCAB for ; Tue, 24 May 2005 05:53:20 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j4O3rJxA027025 for ; Tue, 24 May 2005 05:53:20 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA23630 for ; Tue, 24 May 2005 05:53:19 +0200 (MET DST) Received: from smtp807.mail.sc5.yahoo.com (smtp807.mail.sc5.yahoo.com [66.163.168.186]) by nez-perce.inria.fr (8.13.0/8.13.0) with SMTP id j4O3rHjT005628 for ; Tue, 24 May 2005 05:53:18 +0200 Received: from unknown (HELO ?192.168.1.100?) (rftp@pacbell.net@63.194.18.166 with plain) by smtp807.mail.sc5.yahoo.com with SMTP; 24 May 2005 03:53:16 -0000 Message-ID: <4292A58D.207@rftp.com> Date: Mon, 23 May 2005 20:54:53 -0700 From: Robert Roessler Organization: Robert's High-performance Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Caml-list Subject: ocamlopt and *using* DLLs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4292A52F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4292A52D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamlopt:01 dlls:01 beginners:01 dlls:01 ocamlopt:01 compiler:01 ocamlc:01 lib:01 model:01 ocamlc:01 stub:01 ocaml:01 libs:01 lablgtk:01 runtime: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: I tried this on the beginners list, but may not have been asking the right question(s)... :) 1) Can DLLs appear as input to the ocamlopt compiler like they can with ocamlc? The manual says "yes": "Arguments ending in .o, .a or .so (.obj, .lib and .dll under Windows) are assumed to be C object files and libraries. They are linked with the program." I get "ocamlopt.opt: don't know what to do with ml_scintilla.dll." 2) If DLLs can in fact be used with ocamlopt, is the model the same as with ocamlc? In particular, 2a) can I use them *without* stub libraries? 2b) can I in general expect that an app that works well with ocamlc and a collection of OCaml cma libs and compiled DLLs (LablGTK and associated runtime) will work with ocamlopt - assuming that I generate and replace cmo/cma files with cmx/cmxa files? Robert Roessler roessler@rftp.com http://www.rftp.com