Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- g++ 업데이트
- CentOS7
- centos pyhon 설치
- 정규식 컴파일
- semanage
- InfluxDB
- c3 초
- c3 축 없애기
- 정규식 활용
- linux시간으로 변경
- python popen
- 1697
- c3 second
- snmp test
- python os
- 백준
- selinux port 등록
- subporcess path
- gcc 업데이트
- c++ 정규식
- grafana dashboard
- 정규식 문자열 출력
- regex_search
- snmp
- telegraf
- c3 축 가리기
- python subprocess
- influxdb 설치
- gcc regex
- c3 step graph
Archives
- Today
- Total
리셋 되지 말자
[g++, gcc] gcc 버전 업데이트(업그레이드) 본문
C++로 문자열 다루는데, 정규식을 사용하기 위해서 코드를 짜고 centos7에서 g++로 컴파일을 하려고 하는데,

위와 같이 컴파일이 되지 않았다.
요약하자면 gcc 컴파일러의 버전이 낮아서 C++11을 지원을 안 한다는 거다.
yum list로 확인해보면, 4.8 버전까지 밖에 없다.

정규식 사용을 위해 업데이트를 해보자..ㅠㅠ

1. scl 설치
# yum install -y centos-release-scl
2. devtoolset 버전 확인
# yum list devtoolset-*

3. devtoolset-8 설치
# yum install -y devtoolset-8
4. scl로 devtoolset-8 bash를 enable
# scl enable devtoolset-8 bash
5. g++ 버전 확인
# g++ -v

6. 컴파일 도전

????
경... 경고 메시지가 뜨지만 컴파일 성공!!
Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript
Please wait while the app is loading...
regex101.com
'gcc' 카테고리의 다른 글
[g++] 정규식 라이브러리 활용 (0) | 2020.01.28 |
---|---|
[g++] 정규식 문자열 찾기 및 찾은 문자열 출력 (0) | 2020.01.28 |
[g++] c++과 influxdb 연동해서 사용하기 (0) | 2020.01.23 |
[g++] popen 결과값 사용하기 (0) | 2020.01.23 |
[g++] C++ header file path (0) | 2020.01.23 |