   Linking Error: STL String
#include <iostream>#include <math.h>#include <windows.h>#include <stdlib.h>#include <stdio.h>#include <vector>#include <string>using std::cout;using std::endl;using std::string;void main(void){string MyString = "Testing123";cout << MyString;}Cpp1 error LNK2019: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ) referenced in function "private: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAE_NI_N@Z)I don't understand why I'm getting this linking error, even after I do a clean rebuild...any ideas?   
  I ran the code on my machine and the only problem that I see is that the function main() can't be void as it returns an int when the program exits.Change "void main(void)" to "int main()" As far as the linker errors, I'm not sure why it would be doing that.   ;  I compile the code on my machine using Visual Studio 2005 .NET. No linking errors, it could be your project configuration.   