Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] help -- how to build a binary file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: dengping zhu <zhudp@c...>
Subject: [Caml-list] help -- how to build a binary file
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