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
How to add a "non-standard" static c library to ocaml project
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-12-29 (15:55)
From: lin hong <lhong@a...>
Subject: How to add a "non-standard" static c library to ocaml project


Hey,

I'm struggling with this for few days.

We have a static C library, instead of "libsomename.a", it's "somename.a",
so we could not link it in the usually way like "-lsomename".
In myocamlbuild.ml, I did try to add it's head files dir into cflags, and
"/somelib/dir/somename.a" to clibs. This works for Mac, however, in Linux,
it won't pass the linking process.

Any idea is appreciated ~

Thank you.
Lin