Sign in Join

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

Mailing lists / fpc-pascal / 2010-08

PPUMove usage, follow-up: it works on Linux.

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Unknown author

Hello all,

This is a follow-up message on yesterday's about making shared libraries with units, using the ppumove tool.

Trying the ppumove procedure on an Ubuntu platform works perfectly. I used the same test.pp code.
It compiled with "fpc -Cg" and produced test.o and a test.ppu files. the "ppumove -o test -e ppl test.ppu produced a test.ppl and a libtest.so file correctly. I still need to check if the code executes, but a least the shared library is built on Linux.

I don't know why the same procedure doesn't work on Windows. Is it a problem with the way I configure FPC? or LD? Has anyone tested ppumove on windows?

Best regards,
Thierry

Reply by email

Jonas Maebe
to Unknown author
Show quoted text 9 lines
Trying the ppumove procedure on an Ubuntu platform works perfectly. I used the same test.pp code. It compiled with "fpc -Cg" and produced test.o and a test.ppu files. the "ppumove -o test -e ppl test.ppu produced a test.ppl and a libtest.so file correctly. I still need to check if the code executes, but a least the shared library is built on Linux. I don't know why the same procedure doesn't work on Windows. Is it a problem with the way I configure FPC? or LD? Has anyone tested ppumove on windows?

In general, creating a (non-DDL-style) shared library with FPC is currently not supported on any platform. There are still some patches in the bug tracker that I have to apply to fix the Linux support (http://bugs.freepascal.org/view.php?id=12492), but in general this functionality a) was never finished
b) has not been tested

Jonas

Reply by email

Unknown author

Hello,

Thanks for the quick answer.

...

In general, creating a (non-DDL-style) shared library with FPC is currently not supported on any platform. There are still some patches in the bug >tracker

that I have to apply to fix the Linux support

(http://bugs.freepascal.org/view.php?id=12492), but in general this functionality a) was never finished b) has not been tested

I've got a small example working in Linux. I've started with a small example and used ppumove.

How can I help? Especially, are there tests I can conduct? I have both a windows and a linux platform, on Intel and Amd.

Best regards,
Thierry

Reply by email