Re: narrowing down where "non-relocatable subtraction expression" errors come from?
Re: narrowing down where "non-relocatable subtraction expression" errors come from?
- Subject: Re: narrowing down where "non-relocatable subtraction expression" errors come from?
- From: Chris Suter <email@hidden>
- Date: Sat, 14 Aug 2010 22:24:30 +1000
Hi Michael,
On Sat, Aug 14, 2010 at 3:24 AM, Michael Dautermann
<email@hidden> wrote:
I'm working on a fairly large piece of software where XCode (or gcc 4.2; and gcc 4.0 for that matter) spits out this error when compiling one particularly large Objective C++ file for i386:
{standard input}:6711:non-relocatable subtraction _expression_, "LC28" minus "L00000000026$pb"
{standard input}:6711:symbol: "L00000000026$pb" can't be undefined in a subtraction _expression_
{standard input}:unknown:Undefined local symbol L00000000026$pb
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
I know the brute force solution involves commenting out large swaths of the code (and writing a bunch of temporary stub functions). But would there a more elegant way to determine where a mysterious error like this comes from?
Use Xcode to generate and view the assembly and then look for that symbol.
Kind regards,
Chris
_______________________________________________
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