Re: [fpc-pascal] using static linking of dylib in mac 10.5

2008-10-22 Thread Jonas Maebe
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.

RE: [fpc-pascal] using static linking of dylib in mac 10.5

2008-10-21 Thread Guru Kathiresan
> -Original Message- > From: [EMAIL PROTECTED] [mailto:fpc-pascal- > [EMAIL PROTECTED] On Behalf Of Jonas Maebe > Sent: Monday, October 20, 2008 1:50 AM > To: FPC-Pascal users discussions > Subject: Re: [fpc-pascal] using static linking of dylib in mac 10.5 > > > On

Re: [fpc-pascal] using static linking of dylib in mac 10.5

2008-10-20 Thread Jonas Maebe
On 19 Oct 2008, at 20:54, Guru Kathiresan wrote: I'm not able to do a static link of a dylib (with the latest lazarus + fpc build). I'm using the following code: function MyDyLibFunction: int; cdecl; external 'mylib.dylib'; begin MyDyLibFunction; end; If I use the LoadLibrary function to

[fpc-pascal] using static linking of dylib in mac 10.5

2008-10-20 Thread Guru Kathiresan
Hello, I'm not able to do a static link of a dylib (with the latest lazarus + fpc build). I'm using the following code: function MyDyLibFunction: int; cdecl; external 'mylib.dylib'; begin MyDyLibFunction; end; If I use the LoadLibrary function to load the 'mylib.dylib' I'm get