caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* nonresolved .cma files and errors
@ 2007-04-11  3:06 Jeff Henrikson
  2007-04-11  6:58 ` [Caml-list] " Martin Jambon
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jeff Henrikson @ 2007-04-11  3:06 UTC (permalink / raw)
  To: caml-list

Hello caml-list,

I recently had a shocking realization about why some of my experiments 
with camlp4 weren't compiling.  I had been linking camlp4.cma, which was 
the old name of the library.  Now camlp4.cma doesn't exist and there are 
multiple flavors Camlp4xxx.cma where the xxx is the same flavor notation 
of the the preprocessor binaries.  So the trouble is, why was linking 
such a library not a fatal?  Apparently all missing .cma and .cmo files 
passed on the command line are considered non-errors.  It seems intutive 
to me that both should be fatals!

~/src/camlp4-beta jehenrik$ ocamlc -I +camlp4 -pp camlp4orf junk.cma 
camlp4orf.cma -c dynamic_functor_example3.ml
~/src/camlp4-beta jehenrik$ ocamlc -I +camlp4 -pp camlp4orf junk.cmo 
camlp4orf.cma -c dynamic_functor_example3.ml
~/src/camlp4-beta jehenrik$ ocamlc -I +camlp4 -pp camlp4orf junk.ml 
camlp4orf.cma -c dynamic_functor_example3.ml
I/O error: "junk.ml: No such file or directory"
Preprocessor error

This is the behavior in 3.09.3 as well.  What is the rationale behind 
this design choice?

Regards,


Jeff Henrikson



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-04-12  7:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-11  3:06 nonresolved .cma files and errors Jeff Henrikson
2007-04-11  6:58 ` [Caml-list] " Martin Jambon
2007-04-11  8:04 ` Alain Frisch
2007-04-12  6:42   ` Jeff Henrikson
2007-04-12  7:05     ` Alain Frisch
2007-04-11 11:35 ` Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).