[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Naming C libraries



2005/10/3, Christian Stork <cstork@ics.uci.edu>:
> Hi OCaml Maintainers,
>
> I might be wrong but it seems to me that
>
>     ocamlc -custom -I +extlib extLib.cma -cclib -lextLib -o ... ...
>
> expects
>
>     +extlib/libextlib.a
>             ^^^
> to exist since it calls gcc with
>
>     gcc ... -L/usr/lib/ocaml/3.08.3/extlib -lextLib ...

[...]

> In the case of Extlib, its C lib is installed in +extlib/extlib.a, ie
> without the 'lib' prefix.  Other OCaml libraries, such as Str, have the
> 'lib' prefix.  Shouldn't all packages be installed with this prefix?

In fact there is no extlib C lib, the extlib.a you see is part of the
native compiled extlib library. You can see in other library that for
any .cmxa there is a .a with it.



Reply to: