Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Question about dynamic library system

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Vreman
to Michal Bukovjan: Just a curious question - does anybody know if there is any difference in dynamic linking…
you wrote 8 lines
Just a curious question - does anybody know if there is any difference in dynamic linking libraries implementation in Win32 (aka .DLLs) and Linux (.so)? When linking the library, do they share the same address space? Will there be a need for a unit like borlandmm.dll or anything like that? Is it legal to pass pointer of application's allocated structure to the library? What about AnsiStrings?

At least .so creation doesn't work for classes and ansistrings atm. For .so local variable references in the .so are copied local, for .dll this isn't done. And for .so all .globl defined things are exported and can be accessed while for .dll you can only access the variables defined in the exports section.

But for the moment, don't think about creating dynamic linked libraries becuase there are still problems. Hopefully after the next release it'll be working

Reply by email

Michal Bukovjan

Just a curious question - does anybody know if there is any difference in dynamic linking libraries implementation in Win32 (aka .DLLs) and Linux (.so)?
When linking the library, do they share the same address space? Will there be a need for a unit like borlandmm.dll or anything like that?
Is it legal to pass pointer of application's allocated structure to the library? What about AnsiStrings?

Michal Bukovjan

Reply by email