Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Mac > Re: Trouble wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 142 of 149
Post > Topic >>

Re: Trouble with dynamic library in FPC on mac os

by Isaac Raway <isaac.raway@[EMAIL PROTECTED] > Oct 30, 2007 at 10:19 PM

On 2007-10-30 04:31:46 -0500, Jonas Maebe 
<Jonas.Maebe@[EMAIL PROTECTED]
> said:

> In article <2007102920092116807-isaacraway@[EMAIL PROTECTED]
>,
>  Isaac Raway <isaac.raway@[EMAIL PROTECTED]
> wrote:
> 
>> On 2007-10-29 05:33:37 -0500, Marco van de Voort <marcov@[EMAIL PROTECTED]
>
said:
>> 
>>> function xxx:yy; cdecl; ex****t; [public, alias : '_substr'];
>>> 
>>> And similarly for the im****t:
>>> 
>>> function xxx:yy; cdecl; external 'some.dylib' name '_substr';
>> 
>> The error is now
>> 
>> Compiling ./testsubs.pas
>> Assembling testsubs
>> Linking testsubs
>> /usr/bin/ld: Undefined symbols:
>> __substr
>> 
>> It appears that the entire library is not visible to the compiler, no
>> matter the symbol names.
> 
> No, but the im****t/ex****t name mangling is asymmetrical unfortunately.
> The correct way is:
> 
> ex****t:
> function xxx:yy; cdecl; ex****t; [public, alias : '_substr'];
> 
> im****t:
> function xxx:yy; cdecl; external 'some.dylib' name 'substr';
> 
> 
> Jonas

DIdn't work. Error complains of missing _substr
 




 7 Posts in Topic:
Trouble with dynamic library in FPC on mac os
Isaac Raway <isaac.raw  2007-10-28 15:38:55 
Re: Trouble with dynamic library in FPC on mac os
Marco van de Voort <ma  2007-10-29 10:33:37 
Re: Trouble with dynamic library in FPC on mac os
Isaac Raway <isaac.raw  2007-10-29 20:09:21 
Re: Trouble with dynamic library in FPC on mac os
Jonas Maebe <Jonas.Mae  2007-10-30 10:31:46 
Re: Trouble with dynamic library in FPC on mac os
Isaac Raway <isaac.raw  2007-10-30 22:19:47 
Re: Trouble with dynamic library in FPC on mac os
Jonas Maebe <Jonas.Mae  2007-10-31 11:11:24 
Re: Trouble with dynamic library in FPC on mac os
Isaac Raway <isaac.raw  2007-11-04 23:49:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 16:19:15 CDT 2008.