link-error with VC8.0

BeeThreadGroupStatic.obj :

error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: __thiscall std::_Vector_const_iterato
r<void *,class std::allocator<void *> >::_Vector_const_iterator<void *,class std
::allocator<void *> >(void * *,class std::_Container_base const *)" ( 0 $_Vector_const_iterator@PAXV$allocator@PAX@std@@@std@@QAE@PAPAXPBV_Container_base@1@@Z
)

hello, I get a link error, the project was good in VC 6.0 which I used.

we are on the migration from VC6.0 to VC8.0, I got the error.

I was trying to solve it, but I failed.

would you help me, anybody

thanks




Answer this question

link-error with VC8.0

  • jason_sbi

    An Unresolved external symbol means that it can't find that function / variable in any of the source files or libraries that you are linking into the program.

    Looking up CrtDbgReportW() its part of the C runtime libraries.

    Go to your project properties, then go to linker->debugging. Make sure that "generate debugging info" is on.

    Now go to C/C++->Code Generation and make sure that "Runtime Library" is set to on of the options with debugging set.

    Hopefully that should fix it for you.

    Regards

    Jero



  • spncc

    Check also preprocessor definition. _DEBUG (for debug) or NDEBUG (for release)

    Pascalito.

  • link-error with VC8.0