• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fwd: linking launch.h on 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: linking launch.h on 10.4
      • From: "David M. Cotter" <email@hidden>
References: 
 >Fwd: linking launch.h on 10.4 (From: "David M. Cotter" <email@hidden>)

  • Prev by Date: Fwd: linking launch.h on 10.4
  • Next by Date: How to launch a target into principal app
  • Previous by thread: Fwd: linking launch.h on 10.4
  • Next by thread: Re: linking launch.h on 10.4
  • Index(es):
    • Date
    • Thread