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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 50E7EBC0A for ; Sun, 11 Mar 2007 19:26:45 +0100 (CET) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2BIQi7G014269 for ; Sun, 11 Mar 2007 19:26:45 +0100 Received: by ug-out-1314.google.com with SMTP id q2so2130707uge for ; Sun, 11 Mar 2007 11:26:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fwgge6ob/wI5C0jyUKm7J8fm+vZP2KcZzDuGtpR0oloX7jvfPAaxwO7zGaoDZKIZajZQ0HVExFuZHTD6aQu7GFKetXHhRRk7H/7JxQa1gYzqDL+mNTYDmcv88/zvO6FZXd6J2W93h/eLwcHVF4Q55fyIIgF0QdCG3urk+4aRedU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mutytnhaejMPN2CjvVMGFhzkKqdeBBGPkyI3mJW81+anBoFTqFi8ZXBCbbQWXSsRK6icdTjKkCzBiNORJ9J8zdAU7NS8UFdhfypjxQT99Hb7smaY9E3KtHYGLTQxqEHtTCUCbL5xX1XzHaT2SIyV+WZVq5IeS2p8AhNVvTTUZcg= Received: by 10.115.76.1 with SMTP id d1mr986208wal.1173637603619; Sun, 11 Mar 2007 11:26:43 -0700 (PDT) Received: by 10.114.241.6 with HTTP; Sun, 11 Mar 2007 11:26:43 -0700 (PDT) Message-ID: <875c7e070703111126q27549165v1251fdbd6020e1e@mail.gmail.com> Date: Sun, 11 Mar 2007 13:26:43 -0500 From: "Chris King" To: "Manuel Preliteiro" Subject: Re: [Caml-list] non trivial (at least not to me) Hybrid program compiling Cc: caml-list@yquem.inria.fr In-Reply-To: <2b162d970703111122w23dce20cu260b85ffda620989@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2b162d970703111122w23dce20cu260b85ffda620989@mail.gmail.com> X-j-chkmail-Score: MSGID : 45F449E4.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45F449E4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; trivial:01 ocamlopt:01 testc:01 flags:01 compiler:01 ocamlopt:01 -cclib:01 testc:01 wrote:01 caml-list:01 compiling:02 -ccopt:03 manuel:04 chris:06 chris:06 On 3/11/07, Manuel Preliteiro wrote: > ocamlopt `pkg-config libpcsclite --libs` -o test testC.o testML.ml You want to use the --ccopt and --cclib flags to pass the options to the C compiler; e.g: ocamlopt -cclib `pkg-config libpcsclite --libs` -o test testC.o testML.ml or ocamlopt -ccopt `pkg-config libpcsclite --cflags` -o test testC.c testML.ml HTH. - Chris