Previous Contents Next

Testing the installation

Once installation of the Objective CAML development environment is done, it is necessary to test it, mainly to verify the search paths for executables and libraries. The simplest way is to launch the interactive toplevel of the system and write the first little program that follows:
String.concat "/" ["a"; "path"; "here"] ;;
This expression concatenates several character strings, inserting the ``/'' character between each word. The notation String.concat indicates use of the function concat from the String. If the library search path is not correct, the system will print an error. It will be noted that the system indicates that the computation returns a character string and prints the result.

The documentation of this function String.concat can be found in the online reference manual by following the links ``The standard library'' then ``Module String: string operations''.

To exit the interactive toplevel, the user must type the directive ``#quit ;;''.




Previous Contents Next