From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: Till Crueger <crueger@informatik.uni-bonn.de>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] OCaml and Matlab
Date: Thu, 24 Jul 2008 11:23:27 +0200 [thread overview]
Message-ID: <1216891332-sup-8191@ausone.inria.fr> (raw)
In-Reply-To: <1798.131.220.243.225.1216889271.squirrel@webmail.iai.uni-bonn.de>
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
Excerpts from Till Crueger's message of Thu Jul 24 10:47:51 +0200 2008:
> Hi,
>
> I am currently trying to get OCaml and Matlab to work together. I found
> OCamlMex on the Caml-Hump
> (http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=400).
> However when I try to compile it, I get an error:
>
> ocamlc.opt -c -pp "camlp4r " -I /usr/lib64/ocaml/camlp4 mex.mli
> File "mex.mli", line 235, characters 15-17:
> Unbound type parameter 'a
> make[2]: *** [mex.cmi] Fehler 2
> make[2]: Leaving directory `/home/till/ocamlmex-2.0.1/src'
> make[1]: *** [byte-code-library] Fehler 2
> make[1]: Leaving directory `/home/till/ocamlmex-2.0.1/src'
> make: *** [all] Fehler 2
>
> The line mentioned in the error looks like this:
>
> type mxArray = 'a;
> (** The basic type for all the external data inside Matlab : a mxArray
> can be a numeric array, a cell array, a struct array, or other kind of
> data see mxClassID *)
>
> So I am not at all surprised, that it won't work, because the 'a actually
> is unbound. Was this maybe possible with older versions of the compiler,
> or are there some workarounds, to get it working again?
That's a syntactic over the revised syntax of abstract types, now abstract
types are like in the original syntax:
type mxArray;
--
Nicolas Pouillard aka Ertai
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next prev parent reply other threads:[~2008-07-24 9:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-24 8:47 crueger
2008-07-24 9:23 ` Nicolas Pouillard [this message]
2008-07-24 20:40 ` [Caml-list] " Till Crueger
2008-07-25 8:01 ` Nicolas Pouillard
2008-08-01 14:39 ` Maurice Bremond
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=1216891332-sup-8191@ausone.inria.fr \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=crueger@informatik.uni-bonn.de \
/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