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=0.6 required=5.0 tests=NO_REAL_NAME 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 2C03CBBAF for ; Thu, 24 Jul 2008 10:47:53 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArADAGTeh0jAXQIn/2dsb2JhbACRWJ99 X-IronPort-AV: E=Sophos;i="4.31,245,1215381600"; d="scan'208";a="15413070" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Jul 2008 10:47:52 +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 m6O8lm14030158 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 24 Jul 2008 10:47:52 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al0AANveh0iD3AgEo2dsb2JhbACRWHoBAQEBAQEHBQgHEZ5P X-IronPort-AV: E=Sophos;i="4.31,245,1215381600"; d="scan'208";a="27631094" Received: from postfix.iai.uni-bonn.de ([131.220.8.4]) by mail4-smtp-sop.national.inria.fr with ESMTP; 24 Jul 2008 10:47:52 +0200 X-IAI-Env-From: : [131.220.8.20] Received: from webmail.iai.uni-bonn.de (webmail2.iai.uni-bonn.de [131.220.8.20]) by postfix.iai.uni-bonn.de (Postfix) with ESMTP id 159E05C82D for ; Thu, 24 Jul 2008 10:47:51 +0200 (MEST) (envelope-from crueger@informatik.uni-bonn.de) (envelope-to caml-list@inria.fr) (1) (internal use: ta=1, tu=1, te=1, am=L, au=crueger) Received: from 131.220.243.225 (SquirrelMail authenticated user crueger) by webmail.iai.uni-bonn.de with HTTP; Thu, 24 Jul 2008 10:47:51 +0200 (MEST) Message-ID: <1798.131.220.243.225.1216889271.squirrel@webmail.iai.uni-bonn.de> Date: Thu, 24 Jul 2008 10:47:51 +0200 (MEST) Subject: OCaml and Matlab From: crueger@informatik.uni-bonn.de To: "caml-list" User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Miltered: at concorde with ID 488841B4.000 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 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? Do you know of any other ways to get OCaml and Matlab to communicate? Another way I can think of is to use the OCaml <-> Java interface and the Matlab <-> Java interface, but this would get nasty, and I'd have to write the wrappers myself. So if you know anything on this topic, please let me know. Thanks, Till