[Lazarus] RE : Imposible call DLL (dylib) in Mac OSX Lion

Juan Sánchez aldeacity at gmail.com
Sat Aug 6 17:49:30 CEST 2011


Hello Ludo, thanks a lot. Yes. I included in exports the name of the
function. In Win32 it goes ok but it is in Mac OSX where it doesn't go
right.

With "nm" I get function name so it is on library.

Juan.
El 06/08/2011 16:16, "Ludo Brands" <ludo.brands at free.fr> escribió:
>
>
> ld: symbol(s) not found for architecture i386
> Error: Error while linking
>
>
> at compiling.
>
>
> I've tried with GetProcedureAddress (adapting code) and LoadLibrary loads
> the library but GetProcedureAddress returns nil.
>
>
> Function in DLL is very simple:
>
>
> function DllMessage(): Integer;
> begin
> Result:= 1;
> end;
>
>
>
> Did you export DllMessage() ?
>
> exports DLLMessage;
>
> Try from the console and run (change libyourlib.dylib with the name of
your
> library):
>
> nm libyourlib.dylib | grep -i DllMessage
>
> and check if it is in the list.
>
> Ludo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110806/3ec4c54a/attachment-0003.html>


More information about the Lazarus mailing list