Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -fast creates linker error



On 15 Jun 2005, at 5:23 PM, Ben Weiss wrote:
On Jun 15, 2005, at 1:16 PM, Ben Weiss wrote:

In my project, globally enabling the -fast compiler flag creates the following linker error:


/usr/bin/ld: /Users/benweiss/Documents/Projects/Reef/Projects/ SSFilter/build/SSFilter.proj.build/Release/SSFilter.build/Objects- normal/ppc/DialogUtilitiesMac.o has local relocation entries in non-writable section (__TEXT,__text)

Without -fast, it compiles fine. Anyone know what this error means, or how to work around it?

I see in the notes for -fast the following recommendation on position- independent code, which sounds as though it may relate to your problem:


To build shared libraries with -fast, specify -fPIC on command line.

-- F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >-fast creates linker error (From: Ben Weiss <email@hidden>)
 >Re: -fast creates linker error (From: Ben Weiss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.