Browse thread
Problems with external Modules as well as Threads-Lib
[
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: | -- (:) |
| From: | oliver@f... |
| Subject: | Re: "ocaml_beginners"::[] Problems with external Modules as well as Threads-Lib |
On Fri, Mar 26, 2004 at 03:17:22PM -0800, Issac Trotts wrote: > On Fri, Mar 26, 2004 at 11:53:17PM +0100, oliver@f... wrote: > > On Fri, Mar 26, 2004 at 12:09:13PM -0800, Issac Trotts wrote: > > > On Fri, Mar 26, 2004 at 03:42:55PM +0100, oliver@f... wrote: > > > > Hello, > > > > > > > > compiling as well as generating new toplevel's > > > > makes problems. > > > > > > It's worth remembering that you can put things like this in your > > > ~/.ocamlinit file: > > > > > > #directory "+some_lib" > > > #load "some_lib.cma" > > > > > > (* Or, if you have findlib installed: *) > > > #require "some_lib" > > > > I have findlib loaded (with abs-path to findlib.cma, because > > it wasn't found otherwise), but got the answer > > > > Unknown directive `require' > > > > So, what to do now? > > Put this at the top line of your .ocamlinit: > > #use "topfind" Ok, that helped! thanks! I tried: #require "unix.cma" (* did not work !!! *) I tried: #require "unix" (* did work! :) *) It has loaded the unix-module. I tried: #require "threads" (* did not work !!! *) There was no message about that there was loaded a module! I restarted the ocaml-toplevel and tried: #require "threads" (* did not work !!! *) The answer was, that the unix-module (!!!!) was loaded! No Threads.create is possible! Ciao, Oliver