Re: Building For OS 10.1, 10.2, and 10.3
Re: Building For OS 10.1, 10.2, and 10.3
- Subject: Re: Building For OS 10.1, 10.2, and 10.3
- From: Alexey Proskuryakov <email@hidden>
- Date: Tue, 06 Jan 2004 16:07:16 +0300
On 06.01.2004 03:04, "Chris Espinosa" <email@hidden> wrote:
> Setting the SDK sets the build variable $(SDKROOT), and the build
> system automatically prefaces all system paths (e.g. /usr, /System,
> etc.) with the SDKROOT path. Paths to non-System external frameworks
> and libraries (e.g. your own) aren't affected. So, yes, setting the
> cross-development target automagically redirects these.
Recently, I had a minor problem with this. My project uses iODBC.framework
from OpenLink (located in /Library/Frameworks), and without
cross-compilation it was enough. However, after I changed the SDK to 10.2.8,
I also had to add two other OpenLink frameworks (iODBCadm.framework and
iODBCinst.framework) to the project, or linking gave the following errors:
ld: warning can't open dynamic library:
/Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks/iODBCadm.framework/Versi
ons/3.51/iODBCadm (checking for undefined symbols may be affected) (No such
file or directory, errno = 2)
ld: warning can't open dynamic library:
/Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks/iODBCinst.framework/Vers
ions/3.51/iODBCinst (checking for undefined symbols may be affected) (No
such file or directory, errno = 2)
ld: Undefined symbols:
_SQLGetConfigMode referenced from iODBC expected to be defined in
/Library/Frameworks/iODBCinst.framework/Versions/3.51/iODBCinst
_SQLGetPrivateProfileString referenced from iODBC expected to be defined in
/Library/Frameworks/iODBCinst.framework/Versions/3.51/iODBCinst
_SQLSetConfigMode referenced from iODBC expected to be defined in
/Library/Frameworks/iODBCinst.framework/Versions/3.51/iODBCinst
_iodbcdm_drvconn_dialbox referenced from iODBC expected to be defined in
/Library/Frameworks/iODBCadm.framework/Versions/3.51/iODBCadm
_iodbcdm_drvconn_dialboxw referenced from iODBC expected to be defined in
/Library/Frameworks/iODBCadm.framework/Versions/3.51/iODBCadm
It seems incorrect that Xcode searches for 3rd party frameworks in SDK.
Even after adding the frameworks, Xcode continued to give an incorrect
warning:
ld: warning prebinding disabled because dependent library:
/Developer/SDKs/MacOSX10.2.8.sdk/Library/Frameworks/iODBC.framework/Versions
/3.51/iODBC is not prebound
Actually, it is right in that this library isn't prebound, but it
definitely isn't at the indicated location :)
- WBR, Alexey Proskuryakov
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.