[Omake] OcamlProgram(): how to link a single .cmo/.cmx?

Aleksey Nogin anogin at hrl.com
Wed Dec 5 09:26:53 PST 2007


On 04.12.2007 23:23, Dmitry Bely wrote:

> External .cma/.cmxa library can be linked as follows:
> 
> OCAML_OTHER_LIBS = ...
> OcamlProgram(...)
> 
> But what should I do if I have to link a single external .cmo/.cmx?

Dmitry,

Why do you need to make a distinction between the "internal" and 
"external" .cmo/.cmx? You should be able to link any .cmo/.cmx in by 
passing it (without the suffix) in second argument to OCamlProgam.

Aleksey

-- 
Aleksey Nogin, Research Scientist
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA


More information about the Omake mailing list