Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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