On Mon, 10 Jan 2011, alexv...@mail.ru wrote:

10.01.2011 12:05, Sven Barth пишет:
No, FPC should rely on the operating system for dynamic linking. There is no use in duplicating a functionality that is already there. One "just" needs to spot all problems that might arise on different platforms when using dynamic libraries (e.g. symbol resolution on Windows vs. ELF based systems).

Regards,
Sven

If so, there must be an executable format supported by all FPC target platforms natively. I don't know any such format. We have to duplicate some OS functions to make things crossplatform.

Why ? There is no need for that; You can perfectly use the OS functionality.
All you need to do is add a layer on top which hides the OS specifics.
Borland could do it, so we can do it too.

The main problem is the Windows target where a library is more like a self-contained exe. On Linux (and probably Mac OS), libraries already work as packages are intended to work.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to