caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] strange behavior of camlp4 + batteries
@ 2014-04-23  8:26 Evgenii Lepikhin
  2014-04-23  8:52 ` Robert Jakob
  0 siblings, 1 reply; 2+ messages in thread
From: Evgenii Lepikhin @ 2014-04-23  8:26 UTC (permalink / raw)
  To: caml-list

Hello,

I was unable to use Batteries inside camlp4 module. Short command line test:

$ camlp4o -I .../ocaml -I .../batteries -I .../num nums.cma bigarray.cma
batteries.cma

Camlp4: Uncaught exception: DynLoader.Error (".../batteries.cma", "error while
linking .../batteries.cma.\nThe external function `caml_ba_dim_3' is not
available")

Bigarray is installed correctly:
==========================
$ cat test.ml
open Bigarray

let () =
        let a = Array3.create float32 c_layout 10 10 10 in
        Printf.printf "dim3 = %i\n" (Array3.dim3 a)
==========================
$ ocamlbuild -use-ocamlfind test.native --
Finished, 4 targets (0 cached) in 00:00:00.
dim3 = 10
==========================

What's wrong?

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

* Re: [Caml-list] strange behavior of camlp4 + batteries
  2014-04-23  8:26 [Caml-list] strange behavior of camlp4 + batteries Evgenii Lepikhin
@ 2014-04-23  8:52 ` Robert Jakob
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Jakob @ 2014-04-23  8:52 UTC (permalink / raw)
  To: Evgenii Lepikhin; +Cc: caml-list


On 23.04.2014, at 10:26, Evgenii Lepikhin <johnlepikhin@gmail.com> wrote:

> Hello,
> 
> I was unable to use Batteries inside camlp4 module. Short command line test:
> 
> $ camlp4o -I .../ocaml -I .../batteries -I .../num nums.cma bigarray.cma
> batteries.cma
> 
> Camlp4: Uncaught exception: DynLoader.Error (".../batteries.cma", "error while
> linking .../batteries.cma.\nThe external function `caml_ba_dim_3' is not
> available")
> 
> Bigarray is installed correctly:
> ==========================
> $ cat test.ml
> open Bigarray
> 
> let () =
>        let a = Array3.create float32 c_layout 10 10 10 in
>        Printf.printf "dim3 = %i\n" (Array3.dim3 a)
> ==========================
> $ ocamlbuild -use-ocamlfind test.native --
> Finished, 4 targets (0 cached) in 00:00:00.
> dim3 = 10
> ==========================
> 
> What’s wrong?

May be this is related to this error? http://www.robertjakob.de/posts/camlbadim.html

Robert

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

end of thread, other threads:[~2014-04-23  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-23  8:26 [Caml-list] strange behavior of camlp4 + batteries Evgenii Lepikhin
2014-04-23  8:52 ` Robert Jakob

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