[fpc-devel] library export in Linux

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Oct 5 14:01:12 CEST 2008


On 05 Oct 2008, at 13:23, Jonas Maebe wrote:

> On 05 Oct 2008, at 12:59, Felipe Monteiro de Carvalho wrote:
>
>> On 10/5/08, ABorka <fpc-devel at aborka.com> wrote:
>>> The problem is only there (checked now on apache 2.2.3 also with  
>>> the latest
>>> svn fpc /11864/ and lazarus /16875/ trunk) if
>>>
>>> {$ifdef WINDOWS}//!! not needed
>>> exports test_module name 'test_module1';
>>> {$endif}        //!! not needed
>>
>> Well, then FPC changed, and the old way to export variables on unixes
>> doesn't work anymore. Looks like a regression
>
> Previously, all public declarations were automatically exported from  
> libraries under Unix. This was a bug. Now only what appears in the  
> exports section is exported.
>
> Variables can however not be renamed in the exports section under  
> Unix (previously they were not allowed in the exports section at all).

I've added this to http://wiki.freepascal.org/User_Changes_2.2.2#Exporting_of_library_variables_and_functions


Jonas



More information about the fpc-devel mailing list