Code Monkey home page Code Monkey logo

Comments (4)

huahua132 avatar huahua132 commented on July 19, 2024

请升级gcc

from skynet.

huahua132 avatar huahua132 commented on July 19, 2024

gcc版本过低的原因

from skynet.

terry8210 avatar terry8210 commented on July 19, 2024

安装指定或最新版本的GCC(必须5.0以上)
yum install centos-release-scl -y
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
scl enable devtoolset-9 bash # 临时gcc版本
echo "source /opt/rh/devtoolset-9/enable" >> ~/.bashrc # 永久gcc版本

from skynet.

coolboat avatar coolboat commented on July 19, 2024

我先按照https://github.com/cloudwu/skynet/wiki/Build#%E7%BC%96%E8%AF%91-compiling
“skynet 所有代码以及引用的第三方库都可以被支持 C99 的编译器编译。所以你需要先安装 gcc 4.9 及以上版本”
将gcc从4.8升到4.9,编译一样报错
之后我直接升到gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)
编译通过 make[1]: Leaving directory '/home/jay/dev/game-server/skynet'
希望对你有帮助

from skynet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.