ChorusOS 4.0 Introduction

Building a Dynamic Library

This section describes how to build dynamic and shared programs using the imake tool. See "Developing ChorusOS Applications" for more general information about using imake.

The following imake macro builds dynamic libraries:

DynamicLibraryTarget(dlib, objs, staticLibs, dynamicLibs, dlDeps, options)

The following example builds a dynamic library named from the binary objects files a.o and b.o. When this library is loaded dynamically, the runtime linker will also load the dynamic library, which must be in its search path.

        a.o  b.o, ,, , )