From: "Mattias Waldau" <mattias.waldau@abc.se>
To: "Caml-List" <caml-list@inria.fr>
Subject: Why does the order in the Makefile matter?
Date: Sat, 28 Oct 2000 10:01:13 +0200 [thread overview]
Message-ID: <HDEEKOMJILGEIHIMAPCDIEGCDEAA.mattias.waldau@abc.se> (raw)
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
next reply other threads:[~2000-10-28 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-28 8:01 Mattias Waldau [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=HDEEKOMJILGEIHIMAPCDIEGCDEAA.mattias.waldau@abc.se \
--to=mattias.waldau@abc.se \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).