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: Michael Dautermann <email@hidden>
- Date: Tue, 17 Aug 2010 12:35:18 -0700
On Aug 14, 2010, at 5:24 AM, Chris Suter wrote: Hi Michael,
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
Use Xcode to generate and view the assembly and then look for that symbol.
Thanks for responding, Chris... I had never noticed that "Show Assembly Code" menu item under the Build menu before. The assembly that was produced didn't have any obvious way to connect back to the lines of code that generated the assembly, but I was able to look at the symbols being CALLed & .GLOBL declared to get a general idea of where my problem was happening. I eventually discovered that this all came down to a call to lrint (which was being passed a CGFloat value instead of a double) which I fixed by changing it to lrintf.
I wonder if the original error (the "non-relocatable subtraction _expression_" output) should be filed in Radar?
Thanks again....
|
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