调用_mm_popcnt_u32 (unsigned int __X)报错 错误 解决办法 在CMakeLists.txt的CMAKE_CXX_FLAGS中添加-mfma, 如下: set(CMAKE_CXX_FLAGS "-std=c++14 -mfma") 然后就不报错了。