Re: Questions on tutorial lesson 1
Henri DF <[email protected]> Fri, 31 Dec 2004 11:32:09 +0100 (CET)
| Newsgroups | gmane.network.simulator.epfl |
|---|---|
| Message-ID | <[email protected]> |
Hello, > FYI, I'm using NAB with ocaml 3.08.2. I'm having some > problems with later part of tutorial lesson 1. ok, glad to know it works on 3.08.2 , i thought there were one or two things that needed to change. > First problem:: > > my program and output: > > # (Nodes.node originator)#originate_app_pkt > ~dst:L3pkt.l3_bcast_addr;; > - : l4pkt:L4pkt.t -> unit = <fun> this is wrong. if you look at the tutorial, the command used there is # (Nodes.node originator)#originate_app_pkt ~l4pkt:`EMPTY ~dst:L3pkt.l3_bcast_addr;; you forgot the ~l4pkt argument. > Then there is no verbose output for > # (Sched.s())#run();; this is a consequence of the incomplete command entered above. > Second problem:: > same problem as above. > Running in batch mode:: > > Lastly, how to run object code file lesson1.cmo in > batch mode from the nab-top? I've compile lesson1.cmo > from lesson1.ml. > if you want to load a .cmo from the toplevel, use the #load directive in the toplevel (see http://caml.inria.fr/ocaml/htmlman/manual023.html , section 9.2). another option is to compile a standalone (not toplevel) binary using a command such as make SCRIPT=doc/lesson.ml nab (see the README for different build commands). Best Regards, Henri > Thanks in advance. > > Regards, > Shaiful > > > > garung garung > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn more. > http://info.mail.yahoo.com/mail_250 >