Sign in Join
FPDoc Onlineexperiment

Introduction

Free Pascalsupports the creation of shared libraries on several operating systems. The following table (table Programming shared libraries) indicates which operating systems support the creation of shared libraries.

Shared library support
Operating systems Library extension Library prefix
linux .so lib
windows .dll <none>
BeOS .so lib
FreeBSD .so lib
NetBSD .so lib

The library prefix column indicates how the names of the libraries are resolved and created. For example, under Linux, the library name will always have the lib prefix when it is created. So if you create a library called mylib, under Linux, this will result in the libmylib.so. Furthermore, when importing routines from shared libraries, it is not necessary to give the library prefix or the filename extension.

In the following sections we discuss how to create a library, and how to use these libraries in programs.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.