Go to the first, previous, next, last section, table of contents.


Using cdk_config for non-CDK programs

When cdk_config finds a package name package it doesn't know, he looks in the ocaml installation directory for a file called package.config .

This file should have the following format:

  1. The first line should be the arguments to give to the ocaml compiler for compilation without linking.
  2. The second line should be the arguments to give to the ocaml compiler for byte-code linking.
  3. The third line should be the arguments to give to the ocaml compiler for native-code linking.
  4. The fourth line should be the packages on which package depends.

For wxlib, it would be:

-I +xlib
wxlib.cma
wxlib.cmxa
X11 unix

Notice that cdk_config will also add the libraries which are needed by X11 and unix , and so on.


Go to the first, previous, next, last section, table of contents.