[Lazarus] RE : Imposible call DLL (dylib) in Mac OSX Lion
Ludo Brands
ludo.brands at free.fr
Sat Aug 6 16:16:06 CEST 2011
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/56a56fe5/attachment-0003.html>
More information about the Lazarus
mailing list