[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] Compile error when using cstruct



Hi,

On 16 Jul 2014, at 12:48, Tom Brown <tom.jrbrown@xxxxxxxxx> wrote:

> Hi all,
> 
> I receive the following error when I compile a Mirage application, exactly on 
> the lines that I have cstruct definitions:
> 
> Parse error: [label_expr_list] or [expr level .] expected after "{" (in 
> [expr])
> Preprocessing error on file lib/input.ml
> Error while running external preprocessor
> Command line: camlp4 '-I' '/usr/lib/ocaml/camlp4' '-I' 
> '/home/ocaml/.opam/system/lib/lwt' '-I' '/home/ocaml/.opam/system/lib/lwt' 
> '-parser' 'o' '-parser' 'op' '-printer' 'p' 'lwt-syntax-options.cma' 
> 'lwt-syntax.cma'  'lib/input.ml' > /tmp/ocamlppf271c4
> 
> Would you please help me in finding the problem?

It looks like the cstruct.syntax extension isn’t loaded. I normally add a line 
to my _tags file at the bottom like this:

<foo.ml>: pkg_cstruct.syntax, syntax_camlp4o

HTH,
Dave
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.