Article View: comp.sys.mac.programmer.codewarrior
Article #850Re: Which libraries for MallocDebug
From: MW Ron
Date: Thu, 27 Feb 2003 17:13
Date: Thu, 27 Feb 2003 17:13
65 lines
2979 bytes
2979 bytes
In article <Qea7a.25$J51.4116730@newssvr15.news.prodigy.com>,
"Raymond" <ray@powerproduction.com> wrote:
>Hello
>
>I'm writing a Mach O application with CW 8.2 on OS 10.1.5
>I'd like to use MallocDebug on this application, but I cannot figure out
>which libraries to include.
Basically I'd suggest you use BSD C Headers and C Library.
put the MSL folder next to last in your access order, (just ahead of
frameworks) so that /usr and Mac OS X Support is ahead of MSL
You will then link with the BSD C library and that version of Malloc and
stdio.h has the information for MallocDebug
You don't need SIOUX library in your project instead put
console_OS_X.c in there
You will need to run it from terminal, it won't run from the IDE.
Ron
>
>For the debug version of my C application, I link against:
>--------------------------------------------------
>crt1.o
>MSL_All_Mach-O_D.lib
>
>When I added:
>------------
>libMallocDebug.a
>
>I get 6 link errors like:
>-----------------------
>Link Error : undefined: 'WriteCharsToConsole' (code)
>Referenced from '__write_console' in MSL_All_Mach-O_D.lib
>
>I searched the internet and found that MWRon suggested to someone else to
>include SIOUX.
>So then I added:
>-----------------
>MSL_SIOUX_Mach-O_D.lib
>
>And now I am down to 1 Link error:
>--------------------------------------
>Link Error : undefined: '__eprintf' (code)
>Referenced from 'check_mach_return' in libMallocDebug.a
>
>
>Does anyone know the correct libraries to include (and the order if
>relevant) to use MallocDebug in a MachO application?
>Does anyone know which library to include for the eprintf symbol?
>
>Thank you for any suggestions
>ray
>
>
--
Migrate your PowerPlant Applications to Windows
http://www.metrowerks.com/MW/Services/OEM/default.htm
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID:
<mwron-3B3DCC.12130627022003@enews.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwronReferences:
<Qea7a.25$J51.4116730@newssvr15.news.prodigy.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,7b35cbb1ae144150
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,7b35cbb1ae144150
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-02-27 09:35:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: Which libraries for MallocDebug
Date: Thu, 27 Feb 2003 12:13:06 -0500
Organization: Metrowerks
Lines: 65
Message-ID: <mwron-3B3DCC.12130627022003@enews.newsguy.com>
References: <Qea7a.25$J51.4116730@newssvr15.news.prodigy.com>
NNTP-Posting-Host: p-981.newsdawg.com
User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$