Re: Pascal/Delphi and XCode
Re: Pascal/Delphi and XCode
- Subject: Re: Pascal/Delphi and XCode
- From: Jonas Maebe <email@hidden>
- Date: Fri, 9 Feb 2007 16:43:31 +0100
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:
This email sent to email@hidden