[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-04-24 (09:22) |
From: | Sven LUTHER <luther@d...> |
Subject: | Re: [Caml-list] Help using unix library? |
On Mon, Apr 23, 2001 at 09:52:01PM +0200, Gerd Stolpmann wrote: > On Thu, 19 Apr 2001, Steve Stevenson wrote: > >Good afternoon: > > > > I have references to the unix library using ocaml 3.01. The make > >file has > > > > ebv0: $(BASICOBJECTS) > > ocamlc -g -o ebv0 unix.cma $(BASICOBJECTS) > > cp ebv0 Test/ebv0 > > > >where BASICOBJECTS are all ocaml .cmo files. The complaint is > > > >Fatal error: this bytecode file cannot run on this bytecode interpreter > >Mismatch on primitive `unix_dup' > > > >Does this sound like an installation problem or a mistake in my > >coding? I'm not using dup. > > Try > > ocamlc -custom -g -o ebv0 unix.cma $(BASICOBJECTS) > > This makes ebv0 a bit larger, but avoids that problem because ebv0 contains the > bytecode interpreter that is able to execute the code. By default (without > -custom), the generated executable uses the distributed ocamlrun interpreter. But you loose the portability of the bytecode by doing this. This may not be a problem for you though. Friendly, Sven Luther ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr