[fpc-pascal] using static linking of dylib in mac 10.5
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Wed Oct 22 10:39:10 CEST 2008
    
    
  
On 22 Oct 2008, at 05:05, Guru Kathiresan wrote:
> Thanks for the reply. That seems to work, but I think there is a bug  
> in the
> FPC. When I do a {$linklib myfile.dylib} , it is not picking up the
> myfile.dylib, the compiler is looking for libmyfile.so . I had to  
> rename the
> library from myfile.dylib to libmyfile.so .
Your library was simply named wrongly if it was called myfile.dylib.  
If you want the compiler and linker to find a dynamic library, its  
name must start with lib, so libmyfile.dylib (because to the linker  
you can only say -lmyfile, and then it automatically searches for  
libmyfile.dylib; maybe it also searches for libmyfile.so nowadays, I  
don't know).
Jonas
    
    
More information about the fpc-pascal
mailing list