On 2011-12-11 23:30, Jonas Maebe wrote:
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_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Ok, thanks for clearifying that. I guess it's going to be a lot of
include files instead... :)
-Torsten.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal