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 66CF07EE5C for ; Fri, 12 Apr 2013 18:04:11 +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.93; 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.93; 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@mout3.freenet.de) identity=helo; client-ip=195.4.92.93; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="misterherr@freenet.de"; x-sender="postmaster@mout3.freenet.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokBADowaFHDBFxdjmdsb2JhbABQgmVXgmdHvjKBDBYOAQEBAQcNCQkSBSWCIAEFI2YlAgUhAgIPAkYTCAEBh30BEwOqLogeCYE2AYh0gSONexaCGIETA50Hjhk X-IPAS-Result: AokBADowaFHDBFxdjmdsb2JhbABQgmVXgmdHvjKBDBYOAQEBAQcNCQkSBSWCIAEFI2YlAgUhAgIPAkYTCAEBh30BEwOqLogeCYE2AYh0gSONexaCGIETA50Hjhk X-IronPort-AV: E=Sophos;i="4.87,462,1363129200"; d="scan'208";a="10775444" Received: from mout3.freenet.de ([195.4.92.93]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Apr 2013 18:03:59 +0200 Received: from [195.4.92.142] (helo=mjail2.freenet.de) by mout3.freenet.de with esmtpa (ID misterherr@freenet.de) (port 25) (Exim 4.80.1 #3) id 1UQgSE-0007aK-5k for caml-list@inria.fr; Fri, 12 Apr 2013 18:03:58 +0200 Received: from localhost ([::1]:47422 helo=mjail2.freenet.de) by mjail2.freenet.de with esmtpa (ID misterherr@freenet.de) (Exim 4.80.1 #3) id 1UQgSD-0000UC-QX for caml-list@inria.fr; Fri, 12 Apr 2013 18:03:58 +0200 Received: from [195.4.92.20] (port=44164 helo=10.mx.freenet.de) by mjail2.freenet.de with esmtpa (ID misterherr@freenet.de) (Exim 4.80.1 #3) id 1UQgPz-0000wh-U7 for caml-list@inria.fr; Fri, 12 Apr 2013 18:01:39 +0200 Received: from cl-252.ham-02.de.sixxs.net ([2001:6f8:1c00:fb::2]:37092) by 10.mx.freenet.de with esmtpsa (ID misterherr@freenet.de) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (port 465) (Exim 4.80.1 #3) id 1UQgPz-0008Vk-LJ for caml-list@inria.fr; Fri, 12 Apr 2013 18:01:39 +0200 Message-ID: <51682FE2.60607@freenet.de> Date: Fri, 12 Apr 2013 18:01:38 +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> In-Reply-To: <5167325A.2030600@lakaban.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Caml-list] ocamlfind? how to compile Hi, 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";; This must be removed for ocamlc or ocamlopt to work, right? Annoying. But how do I compile it without manually inserting "unix.cma"/"unix.cmxa" into the command line? I thought the tools would do it. This is what I tried: strl@suse122-intel:~/Ocaml> ocamlfind ocamlc -o ml/unix2_exec ml/unix2_exec.ml ocamlfind: [WARNING] The DLL dllpcre_stubs.so occurs in multiple directories: /usr/lib64/ocaml/site-lib/pcre ocamlfind: [WARNING] The DLL dllpcre_stubs.so occurs in multiple directories: /usr/lib64/ocaml/stublibs File "ml/unix2_exec.ml", line 1: Error: Error while linking ml/unix2_exec.cmo: Reference to undefined global `Unix' /Str.