Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pascal/Delphi and XCode




On 9 feb 2007, at 16:34, Dave wrote:

One more thing though, do I need to do anything special in order to get the Dynamic Library to Load? Does it need to be in the same folder as the place it is used from? I am developing a Plug-In that calls the Pascal library. When I don't use the pascal library my PlugIn loads and works ok (except that the functionality of the Pascal Library isn't there!!!) but when I make it call and reference the pascal library is doesn't load so I am guessing that the problem is that it is not finding the Pascal library correctly.

You have to store inside the library where it will be located. Have a look at "man install_name_tool". For it to work, you may have to pass


-k-header-pad_max_install_names

when compiling the library with Free Pascal (-k means "pass the following option to the linker"). An easier way would be to setup an Xcode/Free Pascal dynamic library project and let Xcode do this for you (setting the correct install path based on where you specify the install location), but I haven't had the time you to create an Xcode template for that (I do have a project doing this though).


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Help Regarding Xcode 2.4 (From: "Lijith P" <email@hidden>)
 >Pascal/Delphi and XCode (From: Dave <email@hidden>)
 >Re: Pascal/Delphi and XCode (From: Jonas Maebe <email@hidden>)
 >Re: Pascal/Delphi and XCode (From: Dave <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.