English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2007-03-11 (18:26)
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