# mmm...VC8!

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## 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&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; & __thiscall std::vector&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class std::allocator&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt; &gt;::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 on other sites
Are you mixing unicode and whatever that word I've forgotten that means non-unicode?

##### 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 on other sites
Quote:
 Original post by BezbenAre you mixing unicode and whatever that word I've forgotten that means non-unicode?
ASCII? EBCDIC?

Quote:
 Original post by ronnybrendelafaik 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 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 on other sites
Quote:
 Original post by ronnybrendelif 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?

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 10
• 23
• 12
• 12
• 11
• ### Forum Statistics

• Total Topics
634779
• Total Posts
3019241
×