Other arguments given to cdk_config are the names of the
packages needed during the compilation. For example, if your program is
using the wxlib widget toolkit library can compile its program
using the following command:
# ocamlc -c `cdk_config -c wxlib` interface.ml # ocamlc -o interface `cdk_config wxlib` interface.cmo
For native code:
# ocamlopt -c `cdk_config -opt -c wxlib` interface.ml # ocamlopt -o interface `cdk_config -opt wxlib` interface.cmx
The output of cdk_config in this last example is:
# cdk_config -opt -c wxlib -I +xlib # cdk_config -opt wxlib unix.cmxa str.cmxa extlib.cmxa common.cmxa concur.cmxa X11.cmxa -I +xlib wxlib.cmxa
Anonymous arguments don't need to be sorted. Dependencies will be computed
by cdk_config so that compilation will be correct anyway.
Go to the first, previous, next, last section, table of contents.