caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Question about linking and module initialization
@ 2002-09-13 18:05 Alessandro Baretta
  2002-09-14  9:58 ` Yamagata Yoriyuki
  0 siblings, 1 reply; 3+ messages in thread
From: Alessandro Baretta @ 2002-09-13 18:05 UTC (permalink / raw)
  To: Ocaml

What is the difference between linking an application with 
the following command

$ ocamlc -o app module1.cmo module2.cmo module3.cmo

and

$ ocamlc -a app.cma module1.cmo module2.cmo module3.cmo
$ ocamlc -o app app.cma
.

I have noticed that if I attempt to link an executable in 
the latter way, the linking phase succeeds, but the 
executable exits immediately with exit status 0 (no error).

This makes me wonder about how modules are initialized when 
an executable is launched. How is module initialization 
different for modules belonging to library files with 
respect to modules coming from .cmo files?

Alex

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-15 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 18:05 [Caml-list] Question about linking and module initialization Alessandro Baretta
2002-09-14  9:58 ` Yamagata Yoriyuki
2002-09-15 17:34   ` Alessandro Baretta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).