项目作者: dantin

项目描述 :
Solutions of online judgement
高级语言: C
项目地址: git://github.com/dantin/daylight.git
创建时间: 2017-09-26T01:59:35Z
项目社区:https://github.com/dantin/daylight

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Daylight

Solutions of online judgement

C Environment

Default gcc in CentOS 7 is 4.8.x, to use development tools like AddressSanitizer, we need to upgrade gcc.

Two way to do this task:

  1. use source code
  2. use SCLo
  1. # install base package
  2. $ sudo yum install centos-release-scl
  3. # install gcc7
  4. $ sudo yum install devtoolset-7-gcc
  5. # install libasan for gcc7
  6. $ sudo yum install devtoolset-7-libasan-devel
  7. # activate
  8. $ source /opt/rh/devtoolset-7/enable

Query

  1. # see the path of package installation
  2. $ rpm -ql devtoolset-7libasan-devel
  3. # see runtime info
  4. $ rpm -qf /opt/rh/devtoolset-7/enable