原因是因为exe和lib中的运行库不一致,需要在Properties-Configuration Properties-C/C++-Code Generation -Runtime Library里面都改为/MDd就可以了。