lily.lib(WinSock.cpp.obj) : error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2”(dhcpcd.obj 中)
原因:
debug版程序链接了release版库
debug
release
cmake
TAGET_LINK_LIBRARIES
解决:
重新设置对应的库名称
LIST(APPEND LIBS debug lilyd optimized lily)TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${LIBS})