Re: X-Code not linking properly
Re: X-Code not linking properly
- Subject: Re: X-Code not linking properly
- From: John Draper <email@hidden>
- Date: Sun, 06 Feb 2005 21:31:40 -0800
Agent M wrote:
To turn ZeroLink off:
1. Click on the GSM.project icon at the top of the file tree view
(left) in Xcode
2. Hit Command-I for the Inspector
3. Click on "Styles" in the tabview
4. In the pull down menu "Active build style" change "development" to
"deployment"
5. clean the project (just to be certain) and recompile
Ok, I did just that.... but then I got a link error...
ld:
/Users/me/Documents/Forbes/Development/MyApp/build/MyApp.build/MyApp.build/Objects-normal/ppc/Controller.o
illegal reference to symbol: _MD5_Init defined in indirectly referenced
dynamic library /usr/lib/libcrypto.0.9.7.dylib
And this is because I'm using MD5 stuff (Not related to the GSM)...
I tried to add it, and now I get _NSLOG undefined symbol
WTF?
John
In your posiition, I would look at the source to working_gsm. Can you
set a breakpoint in that function?
On Feb 6, 2005, at 8:39 PM, John Draper wrote:
X-Code problem...
I added a series of .c modules into my project. It's the GSM from
TU Berlin.
All compiles just fine, and for neatness, I put all of them into a
folder
I call "GSM" not surprisingly.
But when I call the GSM routine, the runtime crashes, and I cannot
even
get to the code...
I get to the statement in the debugger, then when I try and "step
into" it,
it crashes.
0xffff8660 <+0096> .long 0x0 <--- Jumps to here.
0xffff8664 <+0100> .long 0x0
0xffff8668 <+0104> .long 0x0
0xffff866c <+0108> .long 0x0
0xffff8670 <+0112> .long 0x0
0xffff8674 <+0116> .long 0x0
0xffff8678 <+0120> .long 0x0
I wrapped an Obj C wrapper around the GSM and made it into an Object.
I get no compile errors when I try and compile it, but it seems to me
that X-Code is not linking to this routine...
result = working_gsm(gsm_endecode_initialize, r, compressed,
unCompressed, num_frames, wav_fmt);
if (result != 0)
NSLog(@"Unable to initialize Codec");
return(self);
So - when I try and "Step into" the "working_gsm" function you see
above,
I get the output you see.
What am I doing wrong, or what is it I'm supposed to do to make
sure these
modules are linked properly?
Someone also mentioned I should turn off ZeroLink. I have NO CLUE
how to do
that. I'm going to need some serious "hand holding" here... I need
STEP BT STEP instructions on how to do that. Could someone please
help me?
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
AgentM
email@hidden
¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬
_______________________________________________
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