The African Chief wrote:
Sounds mostly okay - except that with Win32, a DLL does not need to have the extension '.dll' (for example, Win32 device drivers are just DLLs with the same interface, and with the extension '.drv' ). A Win32 DLL can have any extension, or no extension at all. Thus it might be that the extension will need to be specified. On the other hand, I suppose that perhaps GPC can presume the extension '.dll' unless another extension is suppled. However, how do you then deal with a case where someone has written a DLL but does not want to give it any extension?
Let GPC first search for the name 'foo' as given, second for 'foo.dll' or 'libfoo.so' (depending on the OS) and last for 'libfoo.a'.
[Libraries]
That sounds like a reasonable compromise. This will not be BP or Delphi-compatible, but it is arguably more consistent to do it this way, and this will also make it trivial to convert a UNIT into a library (something that is not so straightforward with Delphi).
I agree - hoping that it will not be this particular BP/Delphi compatibility issue people will stumble about. ;-)
Peter