<p>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.</p>
<p>With "nm" I get function name so it is on library.</p>
<p>Juan.</p>
<div class="gmail_quote">El 06/08/2011 16:16, "Ludo Brands" <<a href="mailto:ludo.brands@free.fr">ludo.brands@free.fr</a>> escribió:<br type="attribution">> <br>> <br>> ld: symbol(s) not found for architecture i386<br>
> Error: Error while linking<br>> <br>> <br>> at compiling.<br>> <br>> <br>> I've tried with GetProcedureAddress (adapting code) and LoadLibrary loads<br>> the library but GetProcedureAddress returns nil.<br>
> <br>> <br>> Function in DLL is very simple:<br>> <br>> <br>> function DllMessage(): Integer;<br>> begin<br>> Result:= 1;<br>> end; <br>> <br>> <br>> <br>> Did you export DllMessage() ? <br>
> <br>> exports DLLMessage;<br>> <br>> Try from the console and run (change libyourlib.dylib with the name of your<br>> library):<br>> <br>> nm libyourlib.dylib | grep -i DllMessage<br>> <br>> and check if it is in the list.<br>
> <br>> Ludo<br></div>