Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in Three dimensional space distance.obj
解决方法:
项目->Properties->C/C++->Code Generation->Runtime Library改为“Multi-threaded Debug DLL”
2、ERROR in vc 6.0 (LINK : fatal error LNK1561: entry point must be defined)
解决办法:
一般是函数入口没定义, 或者修改为/subsystem:windows /entry:mainCRTStartup
项目->Properties->Linker->System->SubSystem改为Windows(SUBSYSTEM:WINDOWS)
或者使用下面的语句:
#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )
参考博文:
1、https://blog.csdn.net/weixin_40647819/article/details/91863455
2、https://www.cnblogs.com/shines77/archive/2013/08/10/3249629.html