• 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: [Slightly OT] Scripting Bridge in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Slightly OT] Scripting Bridge in Leopard


  • Subject: Re: [Slightly OT] Scripting Bridge in Leopard
  • From: deivy petrescu <email@hidden>
  • Date: Thu, 1 Nov 2007 22:55:59 -0400


On Nov 1, 2007, at 21:17, Philip Aker wrote:

On 2007-01-11, at 18:10, deivy petrescu wrote:

I'd appreciate it if someone would help me here!
I did created the iTunes.h file, but, when I run (g)cc this file in terminal (itunes.m for me) I get:
"
Undefined symbols:
"___CFConstantStringClassReference", referenced from:
__cfstring@0 in ccADvb4i.o
".objc_class_name_SBApplication", referenced from:
literal-pointer@__OBJC@__cls_refs@SBApplication in ccADvb4i.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"
What did I do wrong?

Your gcc options?

gcc -framework Foundation -framework ScriptingBridge -o sbit sbit.m;./sbit


On Nov 1, 2007, at 21:17, Christopher Nebel wrote:

Sounds like you're not linking with ScriptingBridge.framework. Or Foundation, for that matter. Since you're doing this in Terminal, say "cc -framework Foundation -framework ScriptingBridge" plus whatever other options you're using.


--Chris Nebel AppleScript Engineering



Thanks to both...
It works now!

I've never done in terminal.


Deivy _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: [Slightly OT] Scripting Bridge in Leopard
      • From: Philip Aker <email@hidden>
References: 
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: Christopher Nebel <email@hidden>)
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: deivy petrescu <email@hidden>)
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Tabs in Terminal.app on Leopard
  • Next by Date: Re: Tabs in Terminal.app on Leopard
  • Previous by thread: Re: [Slightly OT] Scripting Bridge in Leopard
  • Next by thread: Re: [Slightly OT] Scripting Bridge in Leopard
  • Index(es):
    • Date
    • Thread