From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 7E5547ED33 for ; Tue, 19 Jun 2012 17:11:16 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtoSAP6V4E/RVdSqk2dsb2JhbABFhVebRoNiMZAcAwUiAQEBAQkJFBQEI4IYAQEBAxMCDwRHCwUWGgIJDw4CIxMBBQECCBgTEhCHWwMGBQQHmj8JA4tSiUoDColOgSCJLGOFB4ESA5Y3iW2DIT6EAQ X-IronPort-AV: E=Sophos;i="4.75,798,1330902000"; d="scan'208";a="163577482" Received: from mail-wi0-f170.google.com ([209.85.212.170]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Jun 2012 17:11:16 +0200 Received: by wibhq12 with SMTP id hq12so15968wib.3 for ; Tue, 19 Jun 2012 08:11:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:message-id:subject:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=xRDtLGB1IBAjYyqL0Z3/uq/+PGw2nNdfJyOVLKNfle0=; b=mpeRJSD30u9aAWutw+wvxrrBSmqzeXYSl2geiLjSc+gWAp0J4ki80iulV8ATz8B4Gu S+ZRVoytoh79KOGe/Y0sZfHUZFStVydnE2E6T86JZLsIOoE083SYzo4RPqWVr1RXtZ4u U2oBy0txvKJWNkL0+4St9TR+FEDWyEqdTb2h9o+dTLxFAeNpJNE1gV59UhX6TopwxqIE zY/PcCWKJzLomknkPZNd8eQyVntQas6l7xo/VGNCQ/Q434rTUyGoI4kmYemHXFiyh8pS YjQkTLcsEcUJy+kuz7ZWAsIHnfiZu92CYOTupwm/hA0A0Y4S/+DrDrcTtZKp+yscBb06 VunA== Received: by 10.180.107.70 with SMTP id ha6mr4222301wib.16.1340118675628; Tue, 19 Jun 2012 08:11:15 -0700 (PDT) Received: from gmail.com (248.49.20.93.rev.sfr.net. [93.20.49.248]) by mx.google.com with ESMTPS id dg2sm60340610wib.4.2012.06.19.08.11.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jun 2012 08:11:14 -0700 (PDT) Date: Tue, 19 Jun 2012 17:10:43 +0200 From: Maxence Guesdon To: Philippe Veber Cc: caml users Message-ID: <4fe096731ef29_58a1f11b848894@nngetal-desktop.mail> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_4fe096731d444_58a1f11b8488781"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQk+P0A2ArGit80lEjXMTne6+keoifyLCkh6ULvsE8qnZT1oeCtpXucA//7v9NdgTIwKSaHw Subject: Re: [Caml-list] Strange compilation error. ----==_mimepart_4fe096731d444_58a1f11b8488781 Date: Tue, 19 Jun 2012 17:10:43 +0200 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-ID: <4fe096731e7e3_58a1f11b84888e@nngetal-desktop.mail> On Tue, 19 Jun 2012 16:30:27 +0200 Philippe Veber wrote: > Dear camlers, Hello, > I'm desperately stuck with the following issue: I fail to compile a program > using a module, but have no problem using the module in question in the > toplevel. > > Here is how I use it in the toplevel > > $ ocaml > Objective Caml version 3.12.1 > > # #directory > "/home/pveber/usr/ocamlbrew/ocaml-3.12.1/lib/ocaml/site-lib/R";; > # #load "/home/pveber/usr/ocamlbrew/ocaml-3.12.1/lib/ocaml/site-lib/R/ > R_math.cma";; > # Rmath.pow;; > - : float -> float -> float = > > > Now with the following program: > $ cat test.ml > let x = Rmath.pow 2. > > I try to compile with the options corresponding to the toplevel directives: > > $ ocamlc -o rmath -I > /home/pveber/usr/ocamlbrew/ocaml-3.12.1/lib/ocaml/site-lib/R > /home/pveber/usr/ocamlbrew/ocaml-3.12.1/lib/ocaml/site-lib/R/R_math.cma > test.ml > File "test.ml", line 1, characters 8-17: > Error: Unbound module Rmath Do you have a R_math.cmi file in your ...site-lib/R directory ? Regards, Maxence -- 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 ----==_mimepart_4fe096731d444_58a1f11b8488781--