현재 사용하고 있는 우분투 리눅스가 12.04 입니다.

아직 쓸만하고 공식적으로 지원도 하고 있는 버전이라, 큰 무리 없이 메인으로 사용하고 있습니다.


오늘 갑자기 gcc로 컴파일을 할려고 하는데 c++11이 지원이 되지 않는 것입니다. 흠...

확인해보니 현재 우분투 12.04에 설치된 gcc version이 4.6 이어서 지원이 되지 않는 것이었습니다.


그래서 일단 해당 버전에서 gcc만 4.7로 업그레이드 하기로 하였습니다.



다음 사이트를 참고하시면 됩니다.

http://www.swiftsoftwaregroup.com/upgrade-gcc-4-7-ubuntu-12-04/


Install

sudo add-apt-repository ppa:ubuntu-toolchain-r/test sudo apt-get update sudo apt-get install gcc-4.7 g++-4.7

Update Alternatives

Add GCC 4.7

sudo update-alternatives --remove gcc /usr/bin/gcc-4.6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6

Make sure GCC 4.7 is the default alternative

sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc)

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gcc-4.7 60 auto mode
1 /usr/bin/gcc-4.6 40 manual mode
2 /usr/bin/gcc-4.7 60 manual mode

Press enter to keep the current choice[*], or type selection number: 0

Verify

$ gcc --version
gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


그럼 gcc-4.7에는 어떠한 내용들이 추가되었는지는 다음 사이트를 참고 하시면 됩니다.

https://gcc.gnu.org/gcc-4.7/changes.html


아직 실험단계라고 하는데,,, 다음 사이트도 참고하시기 바랍니다.

https://gcc.gnu.org/gcc-4.7/cxx0x_status.html


저작자 표시 비영리 동일 조건 변경 허락
Posted by sound79 사운드친구

트랙백 주소 : http://sound79.tistory.com/trackback/170 관련글 쓰기

  1. Subject : credit repair companies Chicago

    Tracked from credit repair companies Chicago 2014/09/22 11:40  삭제

    개발자 지식 충전소 ::

  2. Subject : cellophane bags for baskets

    Tracked from cellophane bags for baskets 2014/09/23 15:28  삭제

    개발자 지식 충전소 ::

  3. Subject : resources

    Tracked from resources 2014/10/03 00:25  삭제

    개발자 지식 충전소 ::

  4. Subject : casino spiele gratis

    Tracked from casino spiele gratis 2014/10/13 17:42  삭제

    개발자 지식 충전소 :: ubuntu 12.04 에서 gcc-4.7로 갈아타기

  5. Subject : UberStrike Cheats

    Tracked from UberStrike Cheats 2014/10/14 11:34  삭제

    개발자 지식 충전소 :: ubuntu 12.04 에서 gcc-4.7로 갈아타기

  6. Subject : Post Brothers

    Tracked from Post Brothers 2014/10/17 17:32  삭제

    개발자 지식 충전소 ::

  7. Subject : industrial greenhouses

    Tracked from industrial greenhouses 2014/10/18 00:20  삭제

    개발자 지식 충전소 :: ubuntu 12.04 에서 gcc-4.7로 갈아타기

  8. Subject : Scott Jones Ace Parking

    Tracked from Scott Jones Ace Parking 2014/10/21 16:38  삭제

    개발자 지식 충전소 ::

  9. Subject : us esta

    Tracked from us esta 2014/10/22 23:08  삭제

    개발자 지식 충전소 :: ubuntu 12.04 에서 gcc-4.7로 갈아타기

  10. Subject : Brian Poe

    Tracked from Brian Poe 2014/10/23 11:06  삭제

    개발자 지식 충전소 ::

  11. Subject : Brian Poe

    Tracked from Brian Poe 2014/10/24 06:12  삭제

    개발자 지식 충전소 ::

댓글을 달아 주세요

  1. Domingotaro 2014/10/18 02:01  댓글주소  수정/삭제  댓글쓰기

    2 Oct 2014 ... Rates and video media playing software, attached over the time! Account details and our ... software. Very simple to for nearly 30 years, spy view Maplin offers watch spy cam is blocking JavaScript. ... Ios spy program 19. 0710 ... Sometimes Blanca would show her mother her notebooks. Shaun jerked the ropes harder. Does it look like I need more time. What do you mean. I hear you. . 24 Sep 2014 ... Viber spy software hack iphone 6 spy phone via bluetooth. ... for iphone, skype spy emoticon for iphone, keylogger osx ios, keylogger js for ios, ... Samsung Text Message Spy Software - SMS Spy Software. Are you searching for an effective Samsung text message spy software to. C417,Samsung Champ ... [url=http://iphonespydata925.soup.io/]how to tell is someone is spying on your iphone[/url]
    The Android monitoring software lets you monitor childrens call logs. ... You need JavaScript enabled to view it You can easily play back 3gp files with the app ... [url=http://iphonespyblock452.soup.io/]iphone spy remotely[/url]
    .
    0722518610 0737576390 Email us at info@juju.co.ke ... Our mobile Phone Spy Software can monitor an individual's mobile phone ... Phones include iPhone 5c, iPhone 5s, iPhone 5, iPhone 4s, iPhone 4 iPhone 3GS and iPhone 3G. The combination of Firefox and NoScript can software no 5 jailbreak spy iphone JavaScript on iphone 5 spies software no jailbreak. View all software iphone ... 3 days ago Keylogger list ios easy cell phone spy software reviews. mobile phone spy software registration code for iphone 6 keylogger javascript for;. [url=http://iphonespywareicon771.soup.io/]iphone spy equipment[/url]
    Jun 27, 2014 ... iSpyoo bụ ekwentб»‹ nsochi na nlekota software nke iPhone na gam akporo smartphones na mbadamba. N'otu oge, бє№doride ke iche ekwentб»‹ б»‹ ..
    9 Apr 2014 ... DГ©butГ© par mobile-spy-software , avril 09 2014 0623. mobile spy ... You can use this Keylogger for iphone, ipad, android cell phone. Download ... Sometimes Blanca would show her mother her notebooks. Shaun jerked the ropes harder. Does it look like I need more time. What do you mean. I hear you. Sms spy HTC Butterfly free - Spyware for cell phones Android, iPhone, Blackberry. ... Iphone Spy Software Mobile Spy iPhone Monitoring App. In 2008 Mobile Spy was proud to announce the availability ... Undefined null javascript DGLogik. Available for Android, iPhone, iPad, Blackberry, Windows Mobile and Symbian. ... Spyera is the most powerful and undetectable Spy phone Software! A ton of ...
    [url=http://iphone4spyusb281.soup.io/]iphone 4 spy usb[/url]
    27 Sep 2014 ... ... text oi how does tk i spy es iphone app px spy location ru phone spy fr .... vr mobile spy fv phone software df iphone monitoring fb iphone spy ... [url=http://iphonespyear311.soup.io/]top 3 iphone apps for spying on text messages and call history[/url]
    Spy phone GSM SMS interception. Our Spy Phones and Spy Software make it possible to get copies of conversations and SMS. Spy phones intercept and track ... Jun 27, 2014 ... iSpyoo bụ ekwentб»‹ nsochi na nlekota software nke iPhone na gam akporo smartphones na mbadamba. N'otu oge, бє№doride ke iche ekwentб»‹ б»‹ ..



티스토리 툴바