• 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: Sampler problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sampler problem


  • Subject: Re: Sampler problem
  • From: Christopher Hunt <email@hidden>
  • Date: Wed, 8 Sep 2004 10:03:31 +1000

Problem solved - dead code stripping was enabled for the target but not for the project style...

All problems solved - Sampler now works for my project - thanks so much.

Kind regards,
Christopher

On 08/09/2004, at 9:45 AM, Dave Payne wrote:

I had never heard of libexpat.a until you mentioned it. I'm fairly certain that there isn't anything in Xcode or gcc that would turn on dead code stripping if a library of that name, or any particular static library, was linked in. I don't know if there's anything else that might add that link flag "automatically".

You might open your project file itself ( <foo>.xcode/project.pbxproj ) to see if dead_strip is mentioned in there anywhere. You can run ' /Developer/Tools/pbprojectdump FileMerge.pbproj ' to dump out a more "human-readable" rendition of the project file that may help you figure out where that flag is set, if it's set on say the "Other C Flags" or "Other C++ Flags" setting of your target or build style.

Anyway, one mystery has been solved...

- Dave



On Sep 7, 2004, at 4:36 PM, Christopher Hunt wrote:

Hi Dave,

Interesting - you're right - here's my link line:

/usr/bin/g++-3.3 -o "/Users/huntc/Development/Cocoa Time Place/build/World.app/Contents/MacOS/World" "-L/Users/huntc/Development/Cocoa Time Place/build" -L/usr/lib/gcc/darwin/3.3 "-F/Users/huntc/Development/Cocoa Time Place/build" -filelist "/Users/huntc/Development/Cocoa Time Place/build/Cocoa Time Place.build/Cocoa Time Place.build/Objects-normal/World.LinkFileList" -framework Cocoa -framework OpenGL -framework QuickTime -framework Carbon -framework IOKit -framework CoreServices -framework WebKit -arch ppc -prebind -Wl,-no_arch_warnings -Wl,-dead_strip /usr/local/lib/libexpat.a

I dunno why it has the -dead_strip though... weird... my build settings indicate that this is disabled... is it because I have /usr/local/lib/libexpat.a statically linked?

-C

On 08/09/2004, at 9:09 AM, Dave Payne wrote:
You're positive that dead code stripping is not being used in your app or any frameworks or plugins that are loaded by it? We had a case recently internally where somebody swore that they were not using dead code stripping, but upon detailed examination of their build log, found that the "-dead-strip" option was being used. That option had been set in a different build settings area than they had expected.

Otherwise, it's possible that this is a different issue in Sampler than I'm aware of. If you check your build log to verify that -dead-strip is truly not being passed, could you send your binary to me to take a look at? (Ideally, file a bug report on Sampler, and include the binary as an enclosure.) Does your app include any additional frameworks or plugins beyond those shipped with the system? If so, I might need those as well.

- Dave


On Sep 7, 2004, at 3:35 PM, Christopher Hunt wrote:
Thanks for responding. I'm not using dead code stripping or zerolink.

I'll look at Shark and feedback my findings.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Sampler problem (From: Dave Payne <email@hidden>)
 >Re: Sampler problem (From: Christopher Hunt <email@hidden>)

  • Prev by Date: Re: #include "xxx.inc" problem
  • Next by Date: Xcode 1.x iBook Install Problems
  • Previous by thread: Re: Sampler problem
  • Next by thread: Values in Summary Column of Debugger Are Not Resolved
  • Index(es):
    • Date
    • Thread