From: Matej Kosik <kosik@fiit.stuba.sk>
To: caml-list@yquem.inria.fr
Subject: [Caml-list] Bitstring and toplevel
Date: Fri, 01 Jul 2011 17:59:16 +0200 [thread overview]
Message-ID: <4E0DEED4.8070409@fiit.stuba.sk> (raw)
Hello,
Besides the standard library, I haven't use any other Ocaml libraries.
Now I am testing bitstring
http://people.redhat.com/~rjones/bitstring/html/Bitstring.html#2_Compiling
(which is awesome).
I can compile programs that take advantage of this library.
I would like to create a new toplevel system with bitstring extensions included.
I do not know how to do it despite the fact that there is an answer (year 2010):
http://groups.google.com/group/bitstring/browse_frm/thread/859ffe46ebe9d60b
When I try this:
ocamlc unix.cma dynlink.cma camlp4lib.cma -I +camlp4 toplevellib.cma camlp4of.cma -I +bitstring bitstring.cma bitstring_persistent.cma pa_bitstring.cmo topstart.cmo -o mytop Camlp4Bin.cmo -linkall
the command succeeds, but in the new toplevel system:
kosik@debian:/tmp$ ./mytop
Objective Caml version 3.11.2
Camlp4 Parsing version 3.11.2
# Bitstring.set;;
Error: Unbound value Bitstring.set
# let bits = BITSTRING { 1 : 4; 10 : 12 } ;;
Error: Unbound constructor Bitstring.Construct_failure
Bitstring-related things are undefined. Its emberassing, but I can't figure out what is wrong. Can somebody please help?
Thank you very much in advance.
next reply other threads:[~2011-07-01 15:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 15:59 Matej Kosik [this message]
2011-07-01 19:48 ` ygrek
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=4E0DEED4.8070409@fiit.stuba.sk \
--to=kosik@fiit.stuba.sk \
--cc=caml-list@yquem.inria.fr \
/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