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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 7102E7EE51 for ; Fri, 12 Apr 2013 19:12:12 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of misterherr@freenet.de) identity=pra; client-ip=195.4.92.90; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="misterherr@freenet.de"; x-sender="misterherr@freenet.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of misterherr@freenet.de) identity=mailfrom; client-ip=195.4.92.90; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="misterherr@freenet.de"; x-sender="misterherr@freenet.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mout0.freenet.de) identity=helo; client-ip=195.4.92.90; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="misterherr@freenet.de"; x-sender="postmaster@mout0.freenet.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokBAE8/aFHDBFxalGdsb2JhbABQgmVXgmdHvjOBDBYOAQEBAQcNCQkUAyWCHwEBBSNVEQsYAgIFFgsCAgkDAgECAUUTCAEBh30BEwOqMYggCYE2AYh0gSONexaCGIETA50Hjhk X-IPAS-Result: AokBAE8/aFHDBFxalGdsb2JhbABQgmVXgmdHvjOBDBYOAQEBAQcNCQkUAyWCHwEBBSNVEQsYAgIFFgsCAgkDAgECAUUTCAEBh30BEwOqMYggCYE2AYh0gSONexaCGIETA50Hjhk X-IronPort-AV: E=Sophos;i="4.87,464,1363129200"; d="scan'208";a="10782607" Received: from mout0.freenet.de ([195.4.92.90]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Apr 2013 19:12:11 +0200 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout0.freenet.de with esmtpa (ID misterherr@freenet.de) (port 25) (Exim 4.80.1 #3) id 1UQhWE-0006vW-DM for caml-list@inria.fr; Fri, 12 Apr 2013 19:12:10 +0200 Received: from localhost ([::1]:53135 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID misterherr@freenet.de) (Exim 4.80.1 #3) id 1UQhWE-0001R7-76 for caml-list@inria.fr; Fri, 12 Apr 2013 19:12:10 +0200 Received: from [195.4.92.17] (port=56738 helo=7.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID misterherr@freenet.de) (Exim 4.80.1 #3) id 1UQhTb-0003QG-Bc for caml-list@inria.fr; Fri, 12 Apr 2013 19:09:27 +0200 Received: from cl-252.ham-02.de.sixxs.net ([2001:6f8:1c00:fb::2]:37189) by 7.mx.freenet.de with esmtpsa (ID misterherr@freenet.de) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (port 465) (Exim 4.80.1 #3) id 1UQhTb-0002vS-0u for caml-list@inria.fr; Fri, 12 Apr 2013 19:09:27 +0200 Message-ID: <51683FC5.6060504@freenet.de> Date: Fri, 12 Apr 2013 19:09:25 +0200 From: "Mr. Herr" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: caml-list@inria.fr References: <5167325A.2030600@lakaban.net> <51682FE2.60607@freenet.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Caml-list] ocamlfind? how to compile Am 12.04.2013 18:19, schrieb David Allsopp: > Mr. Herr wrote: >> I did not understand how the helpers for compilation are supposed to work. >> >> For example I have a script that executes external programs, and needs the >> Unix module. >> >> For script execution I have in the top of my script: #load "unix.cma";; > Good "trick" for findlib is to add: > #use "topfind" > to ~/.ocamlinit (create it, if necessary) and then in future toploops you just say > #require "unix";; > instead. Useful when you start using packages which depend on other packages... > First try: I added topfind to .ocamlinit, and in the interactive toplevel I see the startup info, and I can enter [ #require "unix";; ], but when I put [ #require "unix";; ] into my .ml file I get a syntax error on it: str@suse122-intel:~/Ocaml/ml> ocaml unix2_exec.ml ls -l b\* Unknown directive `require'. Same error on compile with ocamlc. Sorry, I don't see how this is supposed to work. /Str.