|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
"ocaml_beginners"::[] "module T = Netcgi_modtpl;;" in the toplevelHi all.
In a source file, I have got this: open Netcgi open Postgresql open Mysql module T = Netcgi_modtpl;; (* ... *) I would like to get the "module T = Netcgi_modtpl" into the toplevel, in order to develop easier. for netcgi, postgresql and mysql, no problem: # #use "topfind";; # #require "netcgi2";; # #require "mysql";; # #require "postgresql";; Then, when: # module T = Netcgi_modtpl;; Unbound module Netcgi_modtpl Ok... What is the way to get this working? Must I invoke ocaml toplevel with a bunch of flags? Thank you. -- Architecte Informatique chez Blueline/Gulfsat: Administration Systeme, Recherche & Developpement +261 34 29 155 34 |
|
|
Re: "ocaml_beginners"::[] "module T = Netcgi_modtpl;;" in the toplevel> Hi all.
Hi, > In a source file, I have got this: > open Netcgi > open Postgresql > open Mysql > > module T = Netcgi_modtpl;; > (* ... *) > > I would like to get the "module T = Netcgi_modtpl" into the toplevel, > in order to develop easier. > > for netcgi, postgresql and mysql, no problem: > # #use "topfind";; > # #require "netcgi2";; > # #require "mysql";; > # #require "postgresql";; > > Then, when: > # module T = Netcgi_modtpl;; > Unbound module Netcgi_modtpl > > Ok... > What is the way to get this working? > Must I invoke ocaml toplevel with a bunch of flags? I would recommend you to learn the classic way before the findlib way, IMHO this would help to understand what goes wrong when something doesn't work In the source the files "netcgi_modtpl.ml[i]" are in the directory "netcgi2-apache/" and not in "netcgi2/". In the Fedora and Mandriva packages this module is not included. It seems Debian provides it. If you run Fedora or Mandriva you can still build the package from the sources. (I will try to find some time during the next weeks to add this in the mandriva package) Another way to check that the directory netcgi2 doesn't contain any Netcgi_modtpl module is with: ocamlbrowser -I +netcgi2 There are also dumb (/ hardcore) ways: tree -fi `ocamlc -where` | grep -i Netcgi_modtpl rgrep -li Netcgi_modtpl `ocamlc -where`/* which may give you a result or not if the module is somewhere or not > Thank you. you're wellcome :) ------------------------------------ Archives up to December 31, 2008 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/ The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr Attachments are banned and you're asked to be polite, avoid flames etc.Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/ocaml_beginners/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/ocaml_beginners/join (Yahoo! ID required) <*> To change settings via email: mailto:ocaml_beginners-digest@... mailto:ocaml_beginners-fullfeatured@... <*> To unsubscribe from this group, send an email to: ocaml_beginners-unsubscribe@... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
| Free embeddable forum powered by Nabble | Forum Help |