using zeoslib - How to reduce size of exe lazarus / 16-Databases ---------------------------------------------------------------------- kjteng · 2017-12-02 01:59 I read somewhere that by disabling  some DB drivers  will reduce binary size. eg. make the following changes in Zeos.inc {$DEFINE ZEOS_DISABLE_MYSQL} {$DEFINE ZEOS_DISABLE_POSTGRESQL} {$DEFINE ZEOS_DISABLE_DBLIB} {$DEFINE ZEOS_DISABLE_ADO} {$DEFINE ZEOS_DISABLE_INTERBASE} {.   $DEFINE ZEOS_DISABLE_SQLITE} {$DEFINE ZEOS_DISABLE_ORACLE} {$DEFINE ZEOS_DISABLE_ASA} {$DEFINE ZEOS_DISABLE_POOLED} I tried the above on a simple test program but dont see any reduction  in exe size. Did I miss out any thing? ---------------------------------------------------------------------- GAN · 2017-12-02 04:19 When I finish a program I only use the strip command to reduce de size of the executable file. Works fine and I use ZeosLib too. ---------------------------------------------------------------------- marcov · 2017-12-02 11:56 You need to rebuild everything after that. ---------------------------------------------------------------------- kjteng · 2017-12-03 05:35 Quote from: marcov on December 02, 2017, 12:56:01 pmYou need to rebuild everything after that. Yeap, after rebuild everything only can get the effect.