From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 79DDBBBAF for ; Thu, 24 Jul 2008 11:24:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAFvmh0jAXQIn/2dsb2JhbACLGKZR X-IronPort-AV: E=Sophos;i="4.31,245,1215381600"; d="asc'?scan'208";a="15414425" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Jul 2008 11:24:04 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m6O9O39O031804 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 24 Jul 2008 11:24:03 +0200 X-IronPort-AV: E=Sophos;i="4.31,245,1215381600"; d="asc'?scan'208";a="27632366" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail4-relais-sop.national.inria.fr with SMTP; 24 Jul 2008 11:24:03 +0200 Received: by ausone.inria.fr (sSMTP sendmail emulation); Thu, _d Jul 2008 11:23:27 +0200 From: "Nicolas Pouillard" Cc: caml-list Subject: Re: [Caml-list] OCaml and Matlab To: Till Crueger References: <1798.131.220.243.225.1216889271.squirrel@webmail.iai.uni-bonn.de> In-Reply-To: <1798.131.220.243.225.1216889271.squirrel@webmail.iai.uni-bonn.de> Date: Thu, 24 Jul 2008 11:23:27 +0200 Message-Id: <1216891332-sup-8191@ausone.inria.fr> User-Agent: Sup/git Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1216891407-965672-11534-3086-22-="; micalg="pgp-sha1" MIME-Version: 1.0 X-Miltered: at concorde with ID 48884A33.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocaml:01 contrib:01 ocamlc:01 -pp:01 camlp:01 usr:01 lib:01 camlp:01 mli:01 mli:01 cmi:01 struct:01 compiler:01 workarounds:01 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" name="signature.asc" --=-1216891407-965672-11534-3086-22-= Content-Type: text/plain; charset=UTF-8 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 --=-1216891407-965672-11534-3086-22-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkiISg8ACgkQj+FCNw9dwLkoCgCgmJh7nED0zfhXElN++7QosxJU fJ0An31vlT8k28rZJpt5GESlqEp8ugx0 =KiL8 -----END PGP SIGNATURE----- --=-1216891407-965672-11534-3086-22-=--