Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:12:46+00:00 2026-06-10T18:12:46+00:00

Possible Duplicate: Eclipse CDT C++11/C++0x support I tried everything to compile C++11 code namely

  • 0

Possible Duplicate:
Eclipse CDT C++11/C++0x support

I tried everything to compile C++11 code namely std::unique_ptr and it never compiles.

I followed this and this yet it still doesn’t compile. I also installed gcc 4.7, and made sure that it’s added to the includes directories of my eclipse c++ project, yet it still doesn’t work!!

Is there anything missing please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:12:48+00:00Added an answer on June 10, 2026 at 6:12 pm

    Which language standard GCC defaults to depends on how it has been compiled, but most distributions still set this to something like gnu++98 for C++. To use C++11, you have to pass one of the following language standard options:

    g++ --std=c++0x     # <= 4.6.*
    
    g++ --std=c++11     # >= 4.7.* (but c++0x is still accepted)
    

    To use a unique pointer:

    #include <memory>
    
    std::unique_ptr<base[]> AllYourBase(::new base[1024]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Moving and vanishing lines of code; trouble with Eclipse's XML Editor I
Possible Duplicate: Build Eclipse Java Project from Command Line I want to compile my
Possible Duplicate: Is it possible to integrate Jquery with Eclipse? I need code completion
Possible Duplicate: Recommended Eclipse plugins to generate UML from Java code I am using
Possible Duplicate: Git plugin for eclipse I have a project on google code to
Possible Duplicate: Eclipse wont start after computer restart Lately I opened my eclipse and
Possible Duplicate: NoClassDefFoundError - Eclipse and Android I'm seeing this question is getting asked
Possible Duplicate: Developing for Android in Eclipse: R.java not generating what to do if
Possible Duplicate: Slow Android emulator I am using Eclipse to load the Android project
Possible Duplicate: Can I run from command line program created by Eclipse? I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.