跳至主要内容

mingw编译protobuf链接报错

 undefined reference to `__emutls_v._ZN6google8protobuf8internal15ThreadSafeArena13thread_cache_E'

 

增加 

IF (WIN32)
add_definitions(-DPROTOBUF_USE_DLLS)
ENDIF ()

评论

此博客中的热门博文