🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #849

Which libraries for MallocDebug

#849
From: Raymond
Date: Wed, 26 Feb 2003 21:22
38 lines
2574 bytes
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.

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
Technical Details
Message-ID: <Qea7a.25$J51.4116730@newssvr15.news.prodigy.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr15.news.prodigy.com.POSTED!74667d8b!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,7b35cbb1ae144150,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,7b35cbb1ae144150,start
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2003-02-26 13:23:17 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr15.news.prodigy.com.POSTED!74667d8b!not-for-mail
Reply-To: "Raymond" <ray@powerproduction.com>
From: "Raymond" <ray@powerproduction.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Which libraries for MallocDebug
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Message-ID: <Qea7a.25$J51.4116730@newssvr15.news.prodigy.com>
NNTP-Posting-Host: 66.127.56.104
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr15.news.prodigy.com 1046294576 ST000 66.127.56.104 (Wed, 26 Feb 2003 16:22:56 EST)
NNTP-Posting-Date: Wed, 26 Feb 2003 16:22:56 EST
Organization: Prodigy Internet http://www.prodigy.com
X-UserInfo1: TSU[@I_AOXSYBW@Y[ROBN\TDFZ\@@FXLM@TDOCQDJ@_@FNHCYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM
Date: Wed, 26 Feb 2003 21:22:56 GMT