From: Elan Magavi on 7 Dec 2006 12:05 Recently turned UNICODE on in my project. Builds fine in debug mode. Release gives me only this error on build. " .... error LNK2019: unresolved external symbol __imp___CrtDbgReport referenced in function "public: unsigned short & __thiscall ATL::CSimpleArray<unsigned short,class ATL::CSimpleArrayEqualHelper<unsigned short> >::operator[](int)" (??A?$CSimpleArray(a)GV?$CSimpleArrayEqualHelper@G(a)ATL@@@ATL@@QAEAAGH@Z) I can't quite comprehend it. The help system has this.. LNK2019.. In Visual C++ .NET 2003, this error will be generated when /clr is used and the CRT is not linked into your executable. Any object code generated by the compiler that is not built with /clr:initialAppDomain contains a reference to the _check_commonlanguageruntime_version function, which is defined in the C Runtime Library (CRT). .. over my head that's for sure. any assistance appreciated. E
From: Joseph M. Newcomer on 7 Dec 2006 16:33 Well, CrtDbgReport is a runtime function available only in the debug version. So there's a question as to why it is being called. It sounds like you are trying to link in a debug-build object file (perhaps from another project or subproject) to a release-build executable. That's my first guess, but there could be other causes. Make sure you are only linking release-build modules into a release-build executable. joe On Thu, 07 Dec 2006 17:05:11 GMT, "Elan Magavi" <Elan(a)nomailnospam.com> wrote: > >Recently turned UNICODE on in my project. Builds fine in debug mode. Release >gives me only this error on build. > >" >... error LNK2019: unresolved external symbol __imp___CrtDbgReport >referenced in function "public: unsigned short & __thiscall >ATL::CSimpleArray<unsigned short,class ATL::CSimpleArrayEqualHelper<unsigned >short> >::operator[](int)" >(??A?$CSimpleArray(a)GV?$CSimpleArrayEqualHelper@G(a)ATL@@@ATL@@QAEAAGH@Z) > > >I can't quite comprehend it. The help system has this.. > >LNK2019.. > >In Visual C++ .NET 2003, this error will be generated when /clr is used and >the CRT is not linked into your executable. Any object code generated by the >compiler that is not built with /clr:initialAppDomain contains a reference >to the _check_commonlanguageruntime_version function, which is defined in >the C Runtime Library (CRT). .. > >over my head that's for sure. > >any assistance appreciated. > >E > Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Elan Magavi on 7 Dec 2006 19:42 "Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message news:a22hn2trl5583152bbe2jbq4e7egcvbamm(a)4ax.com... > Well, CrtDbgReport is a runtime function available only in the debug > version. So there's > a question as to why it is being called. It sounds like you are trying to > link in a > debug-build object file (perhaps from another project or subproject) to a > release-build > executable. That's my first guess, but there could be other causes. Make > sure you are > only linking release-build modules into a release-build executable. > joe Allrigtht Joe.. that's a hint at least. Thanks.. take a peek in here tomorrow just in case! best Elan > > On Thu, 07 Dec 2006 17:05:11 GMT, "Elan Magavi" <Elan(a)nomailnospam.com> > wrote: > >> >>Recently turned UNICODE on in my project. Builds fine in debug mode. >>Release >>gives me only this error on build. >> >>" >>... error LNK2019: unresolved external symbol __imp___CrtDbgReport >>referenced in function "public: unsigned short & __thiscall >>ATL::CSimpleArray<unsigned short,class >>ATL::CSimpleArrayEqualHelper<unsigned >>short> >::operator[](int)" >>(??A?$CSimpleArray(a)GV?$CSimpleArrayEqualHelper@G(a)ATL@@@ATL@@QAEAAGH@Z) >> >> >>I can't quite comprehend it. The help system has this.. >> >>LNK2019.. >> >>In Visual C++ .NET 2003, this error will be generated when /clr is used >>and >>the CRT is not linked into your executable. Any object code generated by >>the >>compiler that is not built with /clr:initialAppDomain contains a reference >>to the _check_commonlanguageruntime_version function, which is defined in >>the C Runtime Library (CRT). .. >> >>over my head that's for sure. >> >>any assistance appreciated. >> >>E >> > Joseph M. Newcomer [MVP] > email: newcomer(a)flounder.com > Web: http://www.flounder.com > MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Elan Magavi on 7 Dec 2006 22:59 "Elan Magavi" <Elan(a)nomailnospam.com> wrote in message news:3y2eh.1273$Gr2.186(a)newssvr21.news.prodigy.net... > > "Joseph M. Newcomer" <newcomer(a)flounder.com> wrote in message > news:a22hn2trl5583152bbe2jbq4e7egcvbamm(a)4ax.com... >> Well, CrtDbgReport is a runtime function available only in the debug >> version. So there's >> a question as to why it is being called. It sounds like you are trying >> to link in a >> debug-build object file (perhaps from another project or subproject) to a >> release-build >> executable. That's my first guess, but there could be other causes. >> Make sure you are >> only linking release-build modules into a release-build executable. >> joe > > Allrigtht Joe.. that's a hint at least. Thanks.. take a peek in here > tomorrow just in case! Yes.. there was still a debug lib in my list. My bad. Thanks again.
|
Pages: 1 Prev: How to LPCTSTR Convert to char * Next: Failure of rand_s() Why? |