Re: Fwd: linking launch.h on 10.4
Re: Fwd: linking launch.h on 10.4
- Subject: Re: Fwd: linking launch.h on 10.4
- From: "Peter O'Gorman" <email@hidden>
- Date: Thu, 19 Jul 2012 22:05:13 -0500
launchd functions from launch.h should be in libSystem.dylib, you don't
have to add this explicitly.
If it doesn't link, the SDK's libSystem is missing these symbols. Sounds
like it's probably a bug.
Peter
On 07/19/2012 07:21 PM, David M. Cotter wrote:
bummer.
i had to symlink liblaunch.dylib from the system to the SDK, but when i
link to liblaunch.dylib, i get this:
ld: cannot link directly with
/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/system/liblaunch.dylib. Link
against the umbrella framework 'System.framework' instead.
collect2: ld returned 1 exit status
but when i link to System.framework (in the 10.4 SDK), i get this:
Undefined symbols:
"launch_data_array_get_count(_launch_data*)", referenced from:
CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in
BetterAuthorizationSampleLib.o
"launch_data_get_errno(_launch_data*)", referenced from:
CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in
BetterAuthorizationSampleLib.o
"launch_data_array_get_index(_launch_data*, unsigned long)",
referenced from:
CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in
_______________________________________________
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