• 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
Trying to use MallocDebug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to use MallocDebug


  • Subject: Trying to use MallocDebug
  • From: Rich Warren <email@hidden>
  • Date: Wed, 31 Mar 2004 01:11:05 -0700

I'm trying to use MallocDebug on a c++ command line tool. The program needs to read from stdin, so I thought I'd start it in a terminal window and just attach MallocDebug. Unfortunately, I apparently must have libMallocDebug linked in.

How do I do this in Xcode?

I tried just compiling it from the command line, using "g++ -lMallocDebug ...", but I got a lot of "duplicat symbol" errors. I seem to remember that there was an order you had to link libraries (at least on 10.2) to get around this--but I couldn't find any info on linking MallocDebug, after many hours of googling.

Thanks,
-Rich-

P.S. In a related question--I understood how to set compiler options (specifically debugging, optimization level and profiling) in Project Builder. But I can't seem to figure it out in Xcode. Any pointers there would also be appreciated.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Verbing weirds language.
-Calvin
_______________________________________________
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.


  • Follow-Ups:
    • Re: Trying to use MallocDebug
      • From: Mark Lentczner <email@hidden>
  • Prev by Date: Re: how do you use the SCM feature?
  • Next by Date: Re: Breakpoints not working
  • Previous by thread: TableView still has selected items after deletion
  • Next by thread: Re: Trying to use MallocDebug
  • Index(es):
    • Date
    • Thread