Re: [Slightly OT] Scripting Bridge in Leopard
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