Re: Questions on tutorial lesson 1
Henri DF <[email protected]> Wed, 5 Jan 2005 10:11:41 +0100 (CET)
| Newsgroups | gmane.network.simulator.epfl |
|---|---|
| Message-ID | <[email protected]> |
Hello, > > Got it now, thank you. > > IMHO, your later part of tutorial lesson 1 is quite > confusing since there are a couple of places where you > wrote: > > #(Nodes.node originator)#originate_app_pkt > ~dst:L3pkt.l3_bcast_addr;; > > without the the phrase ~l4pkt:`EMPTY > > Did you really meant them? no, that is an omission, thanks for the report, i will fix that. > I did run make SCRIPT=scripts/lesson1.ml nab but what > I've got are the lesson1.cmi and lesson1.cmo. There > is no stand alone binary lesson1 under my nab/scripts > folder. the binary should go in the bin/ directory - it will be called nab if you do the above command. let me know if you have any further problems. henri > Regards, > Shaiful > > > --- Henri DF <[email protected]> wrote: > > > 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 > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >