[Omake] Getting similar errors to previous posts

Jason Hickey jyh at cs.caltech.edu
Tue Aug 14 09:44:36 PDT 2007


Todd,

There seem to be two separate issues.  For the link error:

> - build . SimpleProg.opt
> + ocamlfind ocamlopt -warn-error A -I . -o SimpleProg.opt testing.cmx
> No implementations provided for the following modules:
>   Graphics referenced from testing.cmx

you need to specify to use the graphics library (either graphics.cma  
or graphics.cmxa).  Add the following line to your OMakefile.

    OCAML_OTHER_LIBS[] += graphics

For the other problem,

> It says that ocamldep understands modules, but ocamlfind apparently  
> invokes a version that doesn't:
>
> C:\ocamlmgw\bin>ocamldep -modules testing.ml
> testing.ml: Graphics
>
> C:\ocamlmgw\bin>ocamlfind ocamldep -modules testing.ml
> ocamldep: unknown option `-modules'.

It sure seems like you have two versions of ocamldep on your system,  
and ocamlfind is using the other one.  Try using the -verbose option,  
so ocamlfind will print what command it plans to execute.

% ocamlfind ocamldep -verbose -modules testing.ml
+ ocamldep.opt -modules testing.ml
% ocamldep.opt -modules testing.ml
testing.ml: Graphics

Jason

--
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257





More information about the Omake mailing list