一.error C2011: “timespec”:“struct”类型重定义

一.error C2011: “timespec”:“struct”类型重定义

VS2019 在写程序的时候用到了osip_condv.h库,于是就报错 error C2011: “timespec”:“struct”类型重定义。

error C2011: “timespec”:“struct”类型重定义

二.解决办法

在使用的项目属性->预处理器->添加 HAVE_STRUCT_TIMESPEC

 

posted @ 2023-01-31 12:50  Daemondz  阅读(173)  评论(0)    收藏  举报