<p>Thanks a lot. Tonight at home I'l try it again.<br>
Juan.</p>
<div class="gmail_quote">El 06/08/2011 18:44, "Sven Barth" <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>> escribió:<br type="attribution">> On 06.08.2011 15:11, Juan Sánchez wrote:<br>
>> Hello,<br>>> I'm going to start a new program in Lazarus based on Win32, Linux and<br>>> Mac OSX. I'm making some previous test and I've found a problem. I write<br>>> a DLL project and a Executable project. Executable project calls a very<br>
>> simple function in DLL. I cannot compile Exe project because a LD error<br>>> in Mac. DLL (dylib) project compiles OK and with NM and OTOOL I can see<br>>> function in OK.<br>>><br>>> If I include in Exe project:<br>
>><br>>> function DllMessage(): Longint; stdcall; external 'project1';<br>>><br>>> and:<br>>><br>>> x:= DllMessage();<br>> <br>> AFAIK you MUST add a "{$linklib project1}" on OS X if you want to use <br>
> "external".<br>> <br>> Regards,<br>> Sven<br>> <br>> --<br>> _______________________________________________<br>> Lazarus mailing list<br>> <a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
> <a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br></div>