Compiler directives for libraries

 

Type          Parameter

Syntax      $LIBPREFIX 'string'

$LIBSUFFIX 'string'

$LIBVERSION 'string'

Defaults   $LIBPREFIX 'lib' or $SOPREFIX 'bpl'

$LIBSUFFIX ' '

$LIBVERSION ' '

Scope       Global

 

Remarks

$LIBPREFIX overrides the default 'lib' or 'bpl' prefix in the output file name. For example, you could specify {$LIBPREFIX 'dcl'} for a design-time package, or use {$LIBPREFIX ' '} to eliminate the prefix entirely.

$LIBSUFFIX adds a specified suffix to the output file name before the .dll extension. For example, use {$LIBSUFFIX '-2.1.3'} in something.pas to generate something-2.1.3.dll.

$LIBVERSION adds a second extension to the output file name after the .dll extension. For example, use {$LIBVERSION '2.1.3'} in something.pas to generate libsomething.dll.2.1.3.

 

Compiler directives (list)