• 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: narrowing down where "non-relocatable subtraction expression" errors come from?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: narrowing down where "non-relocatable subtraction expression" errors come from?
      • From: Michael Dautermann <email@hidden>
References: 
 >narrowing down where "non-relocatable subtraction expression" errors come from? (From: Michael Dautermann <email@hidden>)

  • Prev by Date: Re: formatting issue in gdb
  • Next by Date: Xcode and svn
  • Previous by thread: narrowing down where "non-relocatable subtraction expression" errors come from?
  • Next by thread: Re: narrowing down where "non-relocatable subtraction expression" errors come from?
  • Index(es):
    • Date
    • Thread