• 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
Fwd: linking launch.h on 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: linking launch.h on 10.4


  • Subject: Fwd: linking launch.h on 10.4
  • From: "David M. Cotter" <email@hidden>
  • Date: Thu, 19 Jul 2012 17:21:46 -0700

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 BetterAuthorizationSampleLib.o
  "launch_data_new_string(char const*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_msg(_launch_data*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_data_dict_lookup(_launch_data*, char const*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_data_free(_launch_data*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_data_dict_get_count(_launch_data*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_data_get_fd(_launch_data*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
  "launch_data_get_type(_launch_data*)", referenced from:
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
      CheckInWithLaunchd(__aslclient*, __aslmsg*, char const**)in BetterAuthorizationSampleLib.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


On Jul 19, 2012, at 1:43 PM, Fritz Anderson wrote:

The only "launch.h" I find on my 10.7 machine isn't in any framework at all. It's in /usr/include/, and corresponds to /usr/lib/system/liblaunch.dylib. It #defines many symbols beginning with LAUNCH_, and many functions beginning with launch_data_. It doesn't have any noticeable relation to Launch Services. Are you sure you mean launch.h?

— F

On 18 Jul 2012, at 12:30 AM, David M. Cotter wrote:

does anybody know what library i must link to in 10.4 to use "launch.h" ?

On Jul 14, 2012, at 7:13 PM, David M. Cotter wrote:

hmm, it doesn't seem that "launch.h" is part of LaunchServices on either 10.4, or 10.5

 _______________________________________________
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: Fwd: linking launch.h on 10.4
      • From: "Peter O'Gorman" <email@hidden>
  • Prev by Date: Re: The speed of popover displays within Xcode
  • Next by Date: Re: Fwd: linking launch.h on 10.4
  • Previous by thread: Re: linking launch.h on 10.4
  • Next by thread: Re: Fwd: linking launch.h on 10.4
  • Index(es):
    • Date
    • Thread