Browse thread
[Caml-list] Error during partial linking
-
Yang Shouxun
- Xavier Leroy
[
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: | Xavier Leroy <xavier.leroy@i...> |
| Subject: | Re: [Caml-list] Error during partial linking |
> I'm trying to compile "baire" data structures library and package it > as a .deb. I have a problem when try to pack all the modules as a > single "baire" module to avoid name clash with stdlibs. The error > message is shown as the title. If you want help, you should provide more context for the error, i.e. the command that fails and all error messages it prints. Adding the "-verbose" option to ocamlopt will give even more useful context. At any rate: > $(CAMLOPT) -pack -o $(RESULT:.cmo=.cmx) $(SOURCES:.ml=.cmx) $(SOURCES:.ml=.o) The -o $(RESULT:.cmo=.cmx) might be wrong, since $(RESULT) is (apparently) "baire", not "baire.cmo". The $(SOURCES:.ml=.o) is wrong too, you should just pass the .cmx files to ocamlopt, it will deal with the underlying .o files all by itself. - Xavier Leroy ------------------- 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