Prb building in Debug mode

M

Michael Russell

I just switched from VC6 to VC.Net (7.0). A project I'm working on build
fine in Release mode, but when I switch to Debug, I get errors. I'm not
really sure where to begin with regard to finding the problem, so I would
appreciate any help.

Here is where the errors come in:

Linking...
SlaughterHelper.obj : error LNK2019: unresolved external symbol
__imp___CrtDbgReport referenced in function "public: virtual bool __thiscall
CBulkRecord<class CRBase,class CCmndBase>::OpenWithCmnd(struct IOpenRowset
*,unsigned short const *,struct tagDBPROPSET *,unsigned long,struct _GUID
const &)"
(?OpenWithCmnd@?$CBulkRecord@VCRBase@@VCCmndBase@@@@UAE_NPAUIOpenRowset@@PBG
PAUtagDBPROPSET@@KABU_GUID@@@Z)
atlsd.lib(AtlDebugAPI.obj) : error LNK2019: unresolved external symbol
__CrtDbgReport referenced in function _AtlTraceRegister@8
atlsd.lib(Externs.obj) : error LNK2001: unresolved external symbol
__CrtDbgReport
atlsd.lib(AtlTraceModuleManager.obj) : error LNK2001: unresolved external
symbol __CrtDbgReport
atlsd.lib(Allocate.obj) : error LNK2001: unresolved external symbol
__CrtDbgReport
Debug\\ReadAcc.exe : fatal error LNK1120: 2 unresolved externals
 
R

Ronald Laeremans [MSFT]

_CrtDbgReport is defined in all version of the Debug C runtime libraries.
You must be linking with either an older version of the debug C runtime or a
non debug version.

Ronald Laeremans
Visual C++ team
 
M

Michael Russell

_CrtDbgReport is defined in all version of the Debug C runtime libraries.
You must be linking with either an older version of the debug C runtime or a
non debug version.

Ronald Laeremans
Visual C++ team


Thanks, I finally got it to work. I looked at another project that I was
able to successfully compile, and found a message about MSVCRTD.LIB. I got
my problem project to compile in Debug by putting MSVCRTD.LIB at the
beginning of the link list (it wasn't in the list at all). I now get a
warning about a conflict, but I'll work that out later.

Michael
 
R

Ronald Laeremans [MSFT]

Make sure that all the components you are linking together use exactly the
same version of the C runtime library.

Ronald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top