Version française
Home     About     Download     Resources     Contact us    
Browse thread
non trivial (at least not to me) Hybrid program compiling
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris King <colanderman@g...>
Subject: Re: [Caml-list] non trivial (at least not to me) Hybrid program compiling
On 3/11/07, Manuel Preliteiro <hankalagon@gmail.com> 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