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.

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to