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

narrowing down where "non-relocatable subtraction expression" errors come from?


  • Subject: narrowing down where "non-relocatable subtraction expression" errors come from?
  • From: Michael Dautermann <email@hidden>
  • Date: Fri, 13 Aug 2010 10:24:14 -0700

Hello all!

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?


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Chris Suter <email@hidden>
  • Prev by Date: invalid DWARF in xcode 3.2.3 with GCC 4.0
  • Next by Date: Re: invalid DWARF in xcode 3.2.3 with GCC 4.0
  • Previous by thread: Re: invalid DWARF in xcode 3.2.3 with GCC 4.0
  • Next by thread: Re: narrowing down where "non-relocatable subtraction expression" errors come from?
  • Index(es):
    • Date
    • Thread