From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA01709; Fri, 30 Aug 2002 12:06:55 +0200 (MET DST) Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id MAA01748 for caml-list@pauillac.inria.fr; Fri, 30 Aug 2002 12:06:54 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA21702 for ; Thu, 29 Aug 2002 21:39:35 +0200 (MET DST) Received: from cs.bu.edu (cs.bu.edu [128.197.12.2]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7TJdWX16979 for ; Thu, 29 Aug 2002 21:39:33 +0200 (MET DST) Received: from csa.bu.edu (zhudp@csa [128.197.12.3]) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id g7TJdSPq008563 for ; Thu, 29 Aug 2002 15:39:28 -0400 (EDT) Received: from localhost (zhudp@localhost) by csa.bu.edu (8.10.1/8.10.1) with ESMTP id g7TJdOs27685 for ; Thu, 29 Aug 2002 15:39:24 -0400 (EDT) X-Authentication-Warning: csa.bu.edu: zhudp owned process doing -bs Date: Thu, 29 Aug 2002 15:39:24 -0400 (EDT) From: dengping zhu X-Sender: zhudp@csa.bu.edu To: Ocaml Subject: [Caml-list] help -- how to build a binary file Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, now I am wondering how to build a binary file for my ml code. I tried the following ways: ocamlopt -cc gcc test.ml It will create a binary file a.out. But I encountered a problem to pass some parameters to this executable file. For example: > ./a.out 1 2 Did somebody have such experience in passing arguments to a executable file from command line? Thanks a lot! Dengping ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners