Sign in to follow this  
templewulf

mmm...VC8!

Recommended Posts

I'm migrating an SDL-based game skeleton from VC7 Pro to VC8 Express. I finally conquered my Platform SDK troubles, but now I have a new problem from, seemingly, the STL. It worked perfectly in VC7.
WulfLog.obj : error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __thiscall std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >::operator[](unsigned int)" (??A?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@QAEAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@I@Z)
To make it easier, CrtDbgReportW is an unresolved symbol referenced by string::operator[]. For reference, I never use the string::operator[] in my program, though I do use vector<string>::operator[] in my Log class. Does anyone have any thoughts on this? Did I break the STL? Thanks.

Share this post


Link to post
Share on other sites
afaik there is no crt-debug lib in the express editions ... so maybe the #define _DEBUG screws it up ...
(http://msdn2.microsoft.com/en-us/library/hs24szh9.aspx)

at the moment i compile without _DEBUG ... because with it ... it fails 8[

Share this post


Link to post
Share on other sites
Quote:
Original post by Bezben
Are you mixing unicode and whatever that word I've forgotten that means non-unicode?
ASCII? EBCDIC?

Quote:
Original post by ronnybrendel
afaik there is no crt-debug lib in the express editions ... so maybe the #define _DEBUG screws it up ...
(http://msdn2.microsoft.com/en-us/library/hs24szh9.aspx)

at the moment i compile without _DEBUG ... because with it ... it fails 8[
How did you deal with _DEBUG? Just #undef? Do you think there's a way to un-break it for the express version?

Ratings++ by the way.

Share this post


Link to post
Share on other sites
if you use debug mode by default there is _DEBUG defined ...

try to compile in release mode ... ( or search under project-options-c/c++->preproccessor the _DEBUG definition and delete it )

hope it works

Share this post


Link to post
Share on other sites
Quote:
Original post by ronnybrendel
if you use debug mode by default there is _DEBUG defined ...

try to compile in release mode ... ( or search under project-options-c/c++->preproccessor the _DEBUG definition and delete it )

hope it works


Compiling in release mode worked just fine! I was wondering more along the lines of un-crippling debug mode, though. Is it possible to download libraries to enable that functionality, or is that one thing you pay for in professional?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this