caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Why does the order in the Makefile matter?
@ 2000-10-28  8:01 Mattias Waldau
  2000-10-28 16:55 ` Pierre Weis
  0 siblings, 1 reply; 7+ messages in thread
From: Mattias Waldau @ 2000-10-28  8:01 UTC (permalink / raw)
  To: Caml-List

Two runs 'make all', the only difference in the order in the OBJS-line in
the Makefile.

What is the needed order? Should I use the order of .depend?

/mattias

c:\data\ocaml\stocks\extract>make all
ocamlc -g  -c regexp.mli
ocamlc -g   -c source.ml
ocamlc -g   -c regexp.ml
ocamlc -g -o all -custom str.cma unix.cma  extract.cmo source.cmo column.cmo
regexp.cmo
Error while linking source.cmo: Reference to undefined global `Regexp'
make: *** [all] Error 2

c:\data\ocaml\stocks\extract>make depend
make depend
make all
ocamldep  *.ml *.mli > .depend

c:\data\ocaml\stocks\extract>make all
ocamlc -g -o all -custom str.cma unix.cma  column.cmo regexp.cmo extract.cmo
source.cmo
camlprim0.c


The only difference made between these two compilations is that I moved
source.cmo last in
the OBJS-row in the Makefile

OBJS=column.cmo regexp.cmo extract.cmo source.cmo


----
Mattias Waldau






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

end of thread, other threads:[~2000-11-03  9:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-28  8:01 Why does the order in the Makefile matter? Mattias Waldau
2000-10-28 16:55 ` Pierre Weis
2000-10-30  8:30   ` Why does the order in the Makefile matter? --- Linking with C kahl
2000-10-31  7:39   ` Why does the order in the Makefile matter? Mattias Waldau
2000-11-01  7:38   ` Stephan Houben
2000-11-02 18:22     ` Pierre Weis
2000-11-03  7:24       ` Judicael Courant

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).