From: skaller <skaller@users.sourceforge.net>
To: snowfall <marisaquaresma@hotmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Unbound type constructor
Date: Thu, 26 Apr 2007 13:03:29 +1000 [thread overview]
Message-ID: <1177556609.8088.19.camel@rosella.wigram> (raw)
In-Reply-To: <10188741.post@talk.nabble.com>
On Wed, 2007-04-25 at 13:21 -0700, snowfall wrote:
> Hi.
>
> I am developing a compiler for a language. I have done the parser, the lexer
> and the ast. But when I execute the command ocamlc -c parser.mli is shown
> the error "unbound type constructor abacus_ast.progr".
>
> and in the parser I put:
> % type < Abacus_ast.progr > programa
>
> Can anyone tell me what I am doing wrong?
yep .. you have to do
ocamlc -c abacus_ast.mli
first. If A depends on B, you must compile B before you
compile A. This applies to all files whether ml or mli
files. x.ml depends on x.mli if it exists.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
prev parent reply other threads:[~2007-04-26 3:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 20:21 snowfall
2007-04-26 3:03 ` skaller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177556609.8088.19.camel@rosella.wigram \
--to=skaller@users.sourceforge.net \
--cc=caml-list@yquem.inria.fr \
--cc=marisaquaresma@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox