[fpc-pascal] Shared libries

Torsten Bonde Christiansen tc at epidata.dk
Mon Dec 12 20:17:15 CET 2011


On 2011-12-12 20:04, Jonas Maebe wrote:
> On 12 Dec 2011, at 19:56, noreply at z505.com wrote:
>
>> procedure proc1; stdcall;
>> begin
>>   writeln('hello');
>> end; exports proc1;
>>
>> procedure proc2; stdcall;
>> begin
>>   writeln('hello 2');
>> end; exports proc2;
>>
>>
>> end.
>>
>>
>> Notice how I put exports in several places...
>>
>> It works on win32..
> It only partially works. Please see the bug report I mentioned earlier: http://bugs.freepascal.org/bug_view_advanced_page.php?bug_id=16070

Does this just mean I have to compile my library with -B every time? If 
that is the case, then I don't mind.

I prefer to have a more manageable unit structure at the cost of an 
extra compiler option, than dealing with
lots of includes or a very large exports section.

Regards,
Torsten.



More information about the fpc-pascal mailing list