Re: Building against 10.5 SDK, link error on "open"
Re: Building against 10.5 SDK, link error on "open"
- Subject: Re: Building against 10.5 SDK, link error on "open"
- From: Kevin Grant <email@hidden>
- Date: Tue, 10 Jun 2008 10:04:10 -0500
It's possible the SDK has a problem, but first double-check
everything you're using (and everything it depends on) to be
sure it's built with consistent headers and libraries. If
it's C++, the compiler version is also important.
You may have to examine the list of environment variables
printed at build time, and the GCC command lines, to see the
problem. For example, the -isysroot option may not be set
correctly.
Another test would be to disable the SDK temporarily and
build against Leopard itself, just to see if the results are
the same.
Kevin G.
I'm trying to get my project to build against the 10.5 SDK, but when
I switch it from $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk to 10.5, I get
a couple of errors:
Undefined symbols:
"_open$UNIX2003", referenced from:
_CreateEventForPath in editorBridge.o
"_close$UNIX2003", referenced from:
_SimplePing in SimplePing.o
_CreateSocketForCommunicationWithHost in SimplePing.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
SimplePing.o is from the Apple provided example. editorBridge is
mine, an implementation of kQueue, which uses the "open" found in
fcntl.h
I don't know enough about UNIX flavoured C to figure out what
settings I might need to change to solve the link error.
Suggestions? Thanks!
dale
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden