# Obsolete

Libraries and the USE keyword are no longer supported in Gambas, as they never worked very well. Look for the ability to write Gambas components in Gambas sometime after 1.0.

The following is preserved temporarily for historical interest:

    ---+<nop>USE

    *USE* _Archive_

    Tells the interpreter to search for classes in the specified archive if it cannot find them in the main project.

    _Archive_ must point to a *Gambas* executable, i.e. an archive generated by the IDE or the _gba_ program.
    It can be an absolute or a relative path.

    If _Archive_ is a relative path, then the interpreter uses the following algorithm to locate the archive :

       * It searches for an archive named _Archive_ in the directory where the running project or the running executable is located.

       * Next, it searches for a *Gambas* project named _Archive_ in the same place, with a compiled executable present.

       * Finally, it searches in the =bin= directory of your *Gambas* installation, by default =/opt/gambas/bin=

    You can call *USE* several times. Then, the first archives have the highest priority.

    %INCLUDE{"ReferenceBy"}%