www.digitalmars.com         C & C++   DMDScript  

c++ - Where are the debug libraries?

reply dan <dan_member pathlink.com> writes:
Trying out a serial port demo, and I get a linker prob.:

sc main.cpp -cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_DEBUG -D_CONSOLE=1
-IG:\dm\stlport\stlport -IG:\dm\include -IG:\boost-1.30.2
-IG:\boost-1.30.2\boost -omain.obj 
sc ..\Serial.cpp -cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_DEBUG -D_CONSOLE=1
-IG:\dm\stlport\stlport -IG:\dm\include -IG:\boost-1.30.2
-IG:\boost-1.30.2\boost -o..\Serial.obj 
link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304 /A:512
 test_serial.LNK 
Error: G:\BACnet\RS485\test\..\Serial.OBJ(Serial)  (53805068): Symbol Undefined
__CrtDbgReport
Lines Processed: 256728  Errors: 1  Warnings: 0
Build failed

Doing a google search for __CrtDbgReport I found this:

-------------------------------------------------
Routine Required Header Compatibility
_CrtDbgReport <crtdbg.h> Win NT, Win 95 >>

You need to link to one of the following libraries:
LIBCD.LIB Single thread static library, debug version
LIBCMTD.LIB Multithread static library, debug version
MSVCRTD.LIB Import library for MSVCRTD.DLL, debug version
-------------------------------------------------

But I can't find any of these in dm\lib, or anywhere in my puter..

Or, well, I did find msvcrtd.dll in windows\system, but then I get a linker
error saying msvcrtd.LIB not found...

TIA
Jan 09 2004
next sibling parent dan <dan_member pathlink.com> writes:
Please, I really need help with this;  3 days gone and getting nowhere.

link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:WinMainCRTStartup /BAS:4194304 /A:512
 hello.LNK 
Error: G:\BACnet\RS485\test\Serial.OBJ(Serial)  (82783638): Symbol Undefined
__CrtDbgReport
Errors: 1  Warnings: 0
Build failed

Thanks
Jan 12 2004
prev sibling next sibling parent reply "Walter" <walter digitalmars.com> writes:
"dan" <dan_member pathlink.com> wrote in message
news:btn7qq$1to0$1 digitaldaemon.com...
 Trying out a serial port demo, and I get a linker prob.:

 sc main.cpp -cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_DEBUG -D_CONSOLE=1
 -IG:\dm\stlport\stlport -IG:\dm\include -IG:\boost-1.30.2
 -IG:\boost-1.30.2\boost -omain.obj
 sc
..\Serial.cpp -cpp -Ae -mn -C -WA -S -3 -a8 -c -gf -D_DEBUG -D_CONSOLE=1
 -IG:\dm\stlport\stlport -IG:\dm\include -IG:\boost-1.30.2
 -IG:\boost-1.30.2\boost -o..\Serial.obj
 link /CO /NOI /DE /NOPACKF /XN /NT /ENTRY:mainCRTStartup /BAS:4194304
/A:512
  test_serial.LNK
 Error: G:\BACnet\RS485\test\..\Serial.OBJ(Serial)  (53805068): Symbol
Undefined
 __CrtDbgReport
 Lines Processed: 256728  Errors: 1  Warnings: 0
 Build failed

 Doing a google search for __CrtDbgReport I found this:

 -------------------------------------------------
 Routine Required Header Compatibility
 _CrtDbgReport <crtdbg.h> Win NT, Win 95 >>

 You need to link to one of the following libraries:
 LIBCD.LIB Single thread static library, debug version
 LIBCMTD.LIB Multithread static library, debug version
 MSVCRTD.LIB Import library for MSVCRTD.DLL, debug version
 -------------------------------------------------

 But I can't find any of these in dm\lib, or anywhere in my puter..

 Or, well, I did find msvcrtd.dll in windows\system, but then I get a
linker
 error saying msvcrtd.LIB not found...
To find out which library things are in: cd \dm\lib grep -i crtdbgreport *.* which gives the following: SNDD.LIB:_CrtDbgReportS./ SNDD.LIB:.__CrtDbgReport.SCCRT70D.DLL SNDD.LIB:_CrtDbgReport... SNDD.LIB: __cpumode5..__CrtDbgReport.. SNDD.LIB: splitpat!.7.__p__crtBreakAlloc!..._CrtDbgReport!.. snnd.LIB:.__CrtDbgReport snnd.LIB:.__CrtDbgReport. snnd.LIB:_CrtDbgReport. snnd.LIB:_CrtDbgReport: String too long or IO Error snnd.LIB:_CrtDbgReport: String too long or IO Error snnd.LIB:.__CrtDbgReport snnd.LIB:.__CrtDbgReportmO So, you need to link in snnd.lib or sndd.lib. Looking at your command line, try snnd.lib, which is the 'debug' build of snn.lib.
Jan 14 2004
next sibling parent dan <dan_member pathlink.com> writes:
    cd \dm\lib
    grep -i crtdbgreport *.*
So, you need to link in snnd.lib or sndd.lib. Looking at your command line,
try snnd.lib, which is the 'debug' build of snn.lib.
Allright! YES! Works! Thanks!
Jan 14 2004
prev sibling parent reply "Bruce Dodson" <bruce_dodson_except_this_part hotmail.com> writes:
I don't have those.  What should I download to get the debug
libraries; or should I dig up the old ones from my SC++ 7.5
CD-ROM?

Thanks,
Bruce

 So, you need to link in snnd.lib or sndd.lib. Looking at
your command line,
 try snnd.lib, which is the 'debug' build of snn.lib.
Jan 15 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Bruce Dodson" <bruce_dodson_except_this_part hotmail.com> wrote in message
news:bu7p3t$1sk0$1 digitaldaemon.com...
 I don't have those.  What should I download to get the debug
 libraries; or should I dig up the old ones from my SC++ 7.5
 CD-ROM?
They're on the DMC++ CD, along with source to the runtime library (and lots of other cool stuff!).
Jan 17 2004
parent reply Scott Michel <scottm cs.ucla.edu> writes:
Walter wrote:
 "Bruce Dodson" <bruce_dodson_except_this_part hotmail.com> wrote in
 message news:bu7p3t$1sk0$1 digitaldaemon.com...
 I don't have those.  What should I download to get the debug
 libraries; or should I dig up the old ones from my SC++ 7.5
 CD-ROM?
They're on the DMC++ CD, along with source to the runtime library (and lots of other cool stuff!).
<shameless plug> It's more than worth the money to purchase the CD. When you consider that for $25, you get a full-featured compiler and none of the MS VC/C++ environment bloat. Sure, there are some rough edges here and there. No, it's not open source, but Walter is pretty responsive, even if I've been a bit of a burr under the saddle recently. </shameless plug>
Jan 17 2004
next sibling parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
"Scott Michel" <scottm cs.ucla.edu> wrote in message
news:bud47t$1kk2$1 digitaldaemon.com...
 Walter wrote:
 "Bruce Dodson" <bruce_dodson_except_this_part hotmail.com> wrote in
 message news:bu7p3t$1sk0$1 digitaldaemon.com...
 I don't have those.  What should I download to get the debug
 libraries; or should I dig up the old ones from my SC++ 7.5
 CD-ROM?
They're on the DMC++ CD, along with source to the runtime library (and lots of other cool stuff!).
<shameless plug> It's more than worth the money to purchase the CD. When you consider that for $25, you get a full-featured compiler and none of the MS VC/C++ environment bloat. Sure, there are some rough edges here and there. No, it's not open source, but Walter is pretty responsive, even if I've been a bit of a burr under the saddle recently. </shameless plug>
And you get the STLSoft libraries. ;) -- Matthew Wilson Director, Synesis Software (www.synesis.com.au) STLSoft moderator (http://www.stlsoft.org) Contributing editor, C/C++ Users Journal (www.synesis.com.au/articles.html#columns) -----------------------------------------------------
Jan 17 2004
prev sibling parent "Bruce Dodson" <bruce_dodson hotmail.com> writes:
Having used the Symantec C++ IDDE for several years, I have to agree that it
is an ABSOLUTE STEAL to get those same tools (updated) for $25.  But, by the
same token, I already have (most of) them. /bruce
Jan 18 2004
prev sibling parent "Walter" <walter digitalmars.com> writes:
"dan" <dan_member pathlink.com> wrote in message
news:btn7qq$1to0$1 digitaldaemon.com...
 -------------------------------------------------
 Routine Required Header Compatibility
 _CrtDbgReport <crtdbg.h> Win NT, Win 95 >>
Also, you can look in \dm\include\crtdbg.h, and you'll see that it's called by the _ASSERT or _ASSERTE macro.
Jan 14 2004