Thanks, Rich. ocamlfind ocamlc -package dynlink,json-static -syntax camlp4o -c test.ml ocamlfind ocamlc -package "dynlink,json-static" -syntax camlp4o -c test.ml ocamlfind ocamlc -package 'dynlink,json-static' -syntax camlp4o -c test.ml But it still does not work. System: cygwin + OCaml 3.11.1 + findlib 1.2.5 + json-staic 0,9.8 Everything works fine when I use Ubuntu, but when changed to cygwin, it breaks. Conglun On Sun, Oct 4, 2009 at 8:05 PM, Richard Jones wrote: > On Sun, Oct 04, 2009 at 03:22:31PM +0100, Conglun Yao wrote: > > Dear all, > > > > I have tried to use json-static in OCaml 3.11, but met the annoying > problem: > > > > Reference to undefined global `Dynlink' > > > > > > As Camlp4 3.11 requires explicit load of dynlink, so I tried > > > > ocamlfind ocamlc -package dynlink, json-static -syntax > > camlp4o -o test test.ml -linkpkg > > Is there really a space in "dynlink, json-static". You'll need to try > it without the space, or quote it. > > Rich. > > -- > Richard Jones > Red Hat >