環境:
CentOS 8.x
MySQL Server 5.x

在編譯的過程中出現以下錯誤
mysqld.cc:6503:1: error:narrowing conversion of 「18446744073709551615」 from 「long unsigned int」 to 「longlong」 {aka 「long long int」} inside { } [-Wnarrowing]

解決方式:
在原來的 ./configure 指令後面 加上 CXXFLAGS="-std=gnu++98"

如:
./configure --prefix=/usr/local/mysql  --with-mysqld-user=mysql --localstatedir=/home/mysql CXXFLAGS="-std=gnu++98"

再重新 make 就不會出現錯誤了

undefined

arrow
arrow
    文章標籤
    mysql linux database
    全站熱搜
    創作者介紹
    創作者 helloworld 的頭像
    helloworld

    Hello World

    helloworld 發表在 痞客邦 留言(0) 人氣()