caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Using camlp4 syntax extensions in the top-level
@ 2009-02-25 15:24 David Allsopp
  2009-02-25 15:59 ` [Caml-list] " Martin Jambon
  0 siblings, 1 reply; 2+ messages in thread
From: David Allsopp @ 2009-02-25 15:24 UTC (permalink / raw)
  To: OCaml List

I'm trying to use json-static in the toplevel (OCaml 3.11.0 / MinGW /
findlib 1.2.4) but I'm getting an error message:

# #camlp4o;;
C:\Dev\OCaml\lib\dynlink.cma: loaded
C:\Dev\OCaml\lib\camlp4: added to search path
C:\Dev\OCaml\lib\camlp4\camlp4o.cma: loaded
        Camlp4 Parsing version 3.11.0

# #require "json-static";;
c:\Dev\OCaml\lib\site-lib\pcre: added to search path
c:\Dev\OCaml\lib\site-lib\pcre\pcre.cma: loaded
c:\Dev\OCaml\lib\site-lib\netsys: added to search path
c:\Dev\OCaml\lib\site-lib\netsys\netsys.cma: loaded
c:\Dev\OCaml\lib\site-lib\netstring: added to search path
c:\Dev\OCaml\lib\site-lib\netstring\netstring.cma: loaded
c:\Dev\OCaml\lib\site-lib\netstring\netstring_top.cmo: loaded
c:\Dev\OCaml\lib\site-lib\netstring\netaccel.cma: loaded
c:\Dev\OCaml\lib\site-lib\netstring\netaccel_link.cmo: loaded
c:\Dev\OCaml\lib\site-lib\json-wheel: added to search path
c:\Dev\OCaml\lib\site-lib\json-wheel\jsonwheel.cma: loaded
c:\Dev\OCaml\lib\site-lib\json-static: added to search path
c:\Dev\OCaml\lib\site-lib\json-static\pa_json_static.cmo: loaded
# type json point = < x: number; y: number >
  and coords = point array;;
Assertion failed, file "camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml", line
795, char 11

I can build the example using ocamlc with no problems - I just don't seem to
be able to do it interactively in the toplevel. Should I be able to?

TIA,


David


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

end of thread, other threads:[~2009-02-25 16:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 15:24 Using camlp4 syntax extensions in the top-level David Allsopp
2009-02-25 15:59 ` [Caml-list] " Martin Jambon

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