linux报错fatal error: xlocale.h: No such file or directory #include <xlocale.h> // because, on some s

问题:fatal error: xlocale.h: No such file or directory
#include // because, on some systems, doesn’t include ; this makes sure that we get both
原因:新版本ubuntu已不在支持xlocal
解决方法:
方法一:
在cmake里面添加
add_definitions(-DXLOCALE_NOT_USED)

方法二:
建立软连接
sudo ln -s /usr/include/locale.h /usr/include/xlocale.h

你可能感兴趣的:(linux报错,linux,ubuntu)