The African Chief wrote:
Perhaps we are talking at cross-purposes here! The Win32 problem will occur not a compile or link time, but at runtime, when the program is trying to link to the DLL. I am not sure whose job it is to search for the DLL at this point - whether it is the compiler's job or the OS (I suspect that it is the job of the OS which should then raise an exception if it cannot find the DLL).
As far as I have understood it, the compiler places the information in the executable which dynamic library it wishes to be linked against. The OS then looks up that library and does the linking. This means that GPC must find out the actual name of the library (which implies to decide whether it is a `.dll' or an `.so' file), and it is the job of the OS to find a corresponding file when the program is run.
Peter