Thread overview
Where are the debug libraries?
Jan 09, 2004
dan
Jan 12, 2004
dan
Jan 15, 2004
Walter
Jan 15, 2004
dan
Jan 16, 2004
Bruce Dodson
Jan 18, 2004
Walter
Jan 18, 2004
Scott Michel
Jan 18, 2004
Matthew
Jan 18, 2004
Bruce Dodson
Jan 15, 2004
Walter
January 09, 2004
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



January 12, 2004
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


January 15, 2004
"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.


January 15, 2004
"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.


January 15, 2004
>    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!


January 16, 2004
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.
>
>


January 18, 2004
"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!).


January 18, 2004
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>
January 18, 2004
"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)

-----------------------------------------------------


January 18, 2004
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