List Info

Thread: "ocaml_beginners"::[] OcamlMakeFile question




"ocaml_beginners"::[] OcamlMakeFile question
user name
2006-11-20 01:25:37

On Mon, 20 Nov 2006, drehman27 wrote:

> I am using OcamlMakeFile to compile my programs.
> The program I am writing needs the Unix and BigArray.Array1 modules.
> What should I add to my MakeFile to link this libraries with my code?

Here is the command that gives you the name of installed packages:
ocamlfind list

Once you have identified the packages you want from the list, you only
have to set the PACKS variable in your Makefile.
In your situation, it would be:

PACKS = unix bigarray

Martin

--
Martin Jambon, PhD
http://martin.jambon.free.fr

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] OcamlMakeFile question
user name
2006-11-20 09:23:21

Thanks. I will try to use findlib. BTW is OMake any better than
OcamlMakeFile?

--- In ocaml_beginners%40yahoogroups.com">ocaml_beginnersyahoogroups.com, Martin Jambon
<martin_jambon...> wrote:
>
> On Mon, 20 Nov 2006, drehman27 wrote:
>
> > I am using OcamlMakeFile to compile my programs.
> > The program I am writing needs the Unix and BigArray.Array1 modules.
> > What should I add to my MakeFile to link this libraries with my code?
>;
> Here is the command that gives you the name of installed packages:
> ocamlfind list
>
> Once you have identified the packages you want from the list, you only
> have to set the PACKS variable in your Makefile.
> In your situation, it would be:
>
> PACKS = unix bigarray
>
>
> Martin
>
> --
> Martin Jambon, PhD
> http://martin.jambon.free.fr
>

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )