[fpc-pascal] Shared libries

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Dec 11 23:30:51 CET 2011


On 11 Dec 2011, at 23:18, Torsten Bonde Christiansen wrote:

> So in the following example "foo" would not be visible (neither as "foo" nor "bar") to other program (eg. a C-program) unless I added an *exports* section?

Correct. See also http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=18552

> Basically what i'm trying to do, is use a lot of units and I want avoid creating a HUGE *exports* section but rather name the
> methods in the units instead.

That is not possible. Whether or not a routine is exported is a property of the library, not of the individual units that are used (directly or indirectly) by the library.


Jonas


More information about the fpc-pascal mailing list