caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild single quotes causing trouble
@ 2007-06-22 14:53 Andrew Warshaver
  2007-06-22 17:10 ` [Caml-list] " Alain Frisch
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Warshaver @ 2007-06-22 14:53 UTC (permalink / raw)
  To: caml-list

Hi all,

I was trying to compile a project using ocamlbuild with an external 
library located distantly, so I did the following (I am also doing 
preprocessing on the file):

ocamlbuild -libs pcre -cflags -I,~/multi-oc/lib -pp "camlp4o 
~/multi-oc\/lib/pa_type_conv.cmo ~/multi-oc/lib/pa_sexp_conv.cmo" 
live_query.byte

Then ocamlbuild eventually runs the following command:

/usr/local/home/godi310/godi/bin/ocamlc.opt -c -I '~/multi-oc/lib' -pp 
'camlp4o ~/multi-oc/lib/pa_type_conv.cmo 
~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli

and spits the error:

File "id.mli", line 1, characters 0-9:
Unbound module Jane
Command exited with code 2.

I noticed, however, if I remove the single quotes from the command -- 
like this --

/usr/local/home/godi310/godi/bin/ocamlc.opt -c -I ~/multi-oc/lib -pp 
'camlp4o ~/multi-oc/lib/pa_type_conv.cmo 
~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli

it works just fine.  I also discovered that if I don't use the ~ abbrev. 
then everything is happy (although this took me a long time to 
discover!).  Is this a problem with ocamlbuild, or something deeper, or 
perhaps even expected behaviour?

Andrew


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

end of thread, other threads:[~2007-06-22 20:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 14:53 ocamlbuild single quotes causing trouble Andrew Warshaver
2007-06-22 17:10 ` [Caml-list] " Alain Frisch
2007-06-22 17:46   ` Andrew Warshaver
2007-06-22 20:38     ` Philippe Wang

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).