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=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 9F3FABC69 for ; Wed, 28 Mar 2007 16:10:58 +0200 (CEST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SEAvhc008531 for ; Wed, 28 Mar 2007 16:10:58 +0200 Received: by an-out-0708.google.com with SMTP id d26so2784829and for ; Wed, 28 Mar 2007 07:10:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=E/SvZmzqpgtl4ZUINum9znklxpis8QIfJODcZ91TUoGVbSaL6+PL3Y4YYYb7fX2nFmHTYQ9EWKmF5++Wz6ER/FBr4zAEpxUhLmte4xeIL5DP7UXnc8ZEF9eQZpv0APsnpVMqh6QCZEuQJmq9R10OCmOFfUIoc3sHBbVmG4OlloM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=W5yqJJlCmfGmO+iJlNnL3qoaTDEWqYgJcRPfC+Em6v9768lcfYjVyumboHD0NpAhuBPBBwxJJmt8nr9L5pusNqFdnBj1yzQj5jDpnBudVwdNvAhowMZgpKbImV0EJiyk/g17jf3ZxuWpcRdprgDjvrHKJ9dC69hzBxvK9gd3KrY= Received: by 10.100.144.11 with SMTP id r11mr200709and.1175091056659; Wed, 28 Mar 2007 07:10:56 -0700 (PDT) Received: from ?192.168.1.34? ( [88.8.239.112]) by mx.google.com with ESMTP id p32sm745203ugc.2007.03.28.07.10.55; Wed, 28 Mar 2007 07:10:55 -0700 (PDT) In-Reply-To: References: <026CA3D4-5A8B-4083-B429-DE5AEC418C0A@gmail.com> <02DBCF0E-8CC6-44CC-B59D-31533A58C32A@gmail.com> <5FF6CDCC-AE05-472F-B721-782D32302EB7@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <902CD295-4A3F-4D43-8CFF-970E29A41398@gmail.com> Cc: "Caml List" Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Producing a C wrapper with ocamlbuild or OMake Date: Wed, 28 Mar 2007 15:10:52 +0100 To: "Nicolas Pouillard" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460A7771.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 460A7771.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 -output-obj:01 flags:01 flags:01 ocaml:01 -linkpkg:01 byte:01 ocamlfind:01 ocamlc:01 -package:01 cmo:01 cmo:01 parser:01 util:01 symtab:01 On Mar 28, 2007, at 2:57 PM, Nicolas Pouillard wrote: > flag ["ocaml"; "link"; "output_obj"] (A"-output-obj"); > (* I will make this one part of the standard set of flags *) Wouldn't this set of flags conflict with my previous flag ["ocaml"; "link"] (A"-linkpkg");; I replaced the flags and now get ocamlbuild test.byte -- + ocamlfind ocamlc -package ounit easy_code.cmo ninja.cmo easy.cmo ninja_morph.cmo parser_util.cmo symtab.cmo easy_parser.cmo easy_lexer.cmo parser_test.cmo pretty.cmo ppninja.cmo ninja_morph_test.cmo test.cmo -o test.byte Error while linking parser_test.cmo: Reference to undefined global `OUnit' Command exited with code 2. What's the flag syntax to add -linkpkg to -output-obj? Thanks, Joel -- http://wagerlabs.com/