Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2004

Tip: Looking for answers? Try searching our database.

Prb building in Debug mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Russell - 12 Mar 2004 21:28 GMT
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
Ronald Laeremans [MSFT] - 15 Mar 2004 19:18 GMT
_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

> 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
[quoted text clipped - 9 lines]
> *,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
[quoted text clipped - 6 lines]
> __CrtDbgReport
> Debug\\ReadAcc.exe : fatal error LNK1120: 2 unresolved externals
Michael Russell - 15 Mar 2004 23:05 GMT
On 3/15/04 12:18 PM, in article ONAy2nrCEHA.1228@TK2MSFTNGP11.phx.gbl,

> _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

>> 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
[quoted text clipped - 22 lines]
>> __CrtDbgReport
>> Debug\\ReadAcc.exe : fatal error LNK1120: 2 unresolved externals
Ronald Laeremans [MSFT] - 15 Mar 2004 23:21 GMT
Make sure that all the components you are linking together use exactly the
same version of the C runtime library.

Ronald

> On 3/15/04 12:18 PM, in article ONAy2nrCEHA.1228@TK2MSFTNGP11.phx.gbl,
>
[quoted text clipped - 27 lines]
> >> *,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
[quoted text clipped - 6 lines]
> >> __CrtDbgReport
> >> Debug\\ReadAcc.exe : fatal error LNK1120: 2 unresolved externals

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.